aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpg-error.h.in
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2024-05-29 06:14:44 +0000
committerNIIBE Yutaka <[email protected]>2024-05-29 06:16:56 +0000
commit6c05b35977c9d15da45b4fe6c0c870dbbf51657c (patch)
treeeeff919dfe06900b6f8f62b3cf45153ed2d6ab88 /src/gpg-error.h.in
parentImport spawn functions from GnuPG master. (diff)
downloadlibgpg-error-6c05b35977c9d15da45b4fe6c0c870dbbf51657c.tar.gz
libgpg-error-6c05b35977c9d15da45b4fe6c0c870dbbf51657c.zip
Cleaner semantics for _gpgrt_process_spawn without a callback.
* src/gpg-error.h.in (@define:struct_spawn_cb_arg@): Remove. (gpgrt_spawn_actions_t): New. (@define:spawn_actions_functions@): New. * src/gpgrt-int.h (_gpgrt_spawn_actions_new) (_gpgrt_spawn_actions_release, _gpgrt_spawn_actions_set_envvars) (_gpgrt_spawn_actions_set_redirect): New. [HAVE_W32_SYSTEM] (_gpgrt_spawn_actions_set_inherit_handles): New. [!HAVE_W32_SYSTEM] (_gpgrt_spawn_actions_set_inherit_fds) (_gpgrt_spawn_actions_set_atfork): New. (_gpgrt_process_spawn): Use gpgrt_spawn_actions_t. (_gpgrt_spawn_helper): Remove. * src/mkheader.c: Emit gpgrt_spawn_actions_* definition. * src/spawn-posix.c(_gpgrt_spawn_actions_new) (_gpgrt_spawn_actions_release, _gpgrt_spawn_actions_set_envvars) (_gpgrt_spawn_actions_set_redirect) (_gpgrt_spawn_actions_set_inherit_fds) (_gpgrt_spawn_actions_set_atfork): New. (spawn_detached, _gpgrt_process_spawn): Use gpgrt_spawn_actions_t. (_gpgrt_spawn_helper): Remove. * src/spawn-w32.c: Ditto, with _gpgrt_spawn_actions_set_inherit_handles, but no _gpgrt_spawn_actions_set_atfork. -- GnuPG-bug-id: 6249 Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'src/gpg-error.h.in')
-rw-r--r--src/gpg-error.h.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpg-error.h.in b/src/gpg-error.h.in
index 1589015..d38696a 100644
--- a/src/gpg-error.h.in
+++ b/src/gpg-error.h.in
@@ -1107,7 +1107,8 @@ void _gpgrt_log_assert (const char *expr, const char *file, int line,
#define GPGRT_PROCESS_STREAM_NONBLOCK (1 << 16)
typedef struct gpgrt_process *gpgrt_process_t;
-@define:struct_spawn_cb_arg@
+typedef struct gpgrt_spawn_actions *gpgrt_spawn_actions_t;
+@define:spawn_actions_functions@
enum gpgrt_process_requests
{