diff options
author | NIIBE Yutaka <[email protected]> | 2022-11-17 06:16:03 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2022-11-17 06:16:03 +0000 |
commit | 4736debd01ecfc0f77f99a257caea174201310fa (patch) | |
tree | b327bca6ed6614c1e5abf9ddb9dd0d5411bd7dc9 /common/exechelp.h | |
parent | common,tools,dirmngr: Introduce gnupg_process_spawn. (diff) | |
download | gnupg-4736debd01ecfc0f77f99a257caea174201310fa.tar.gz gnupg-4736debd01ecfc0f77f99a257caea174201310fa.zip |
change the semantics of spawn_cb routine.
--
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'common/exechelp.h')
-rw-r--r-- | common/exechelp.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/common/exechelp.h b/common/exechelp.h index df0952e7d..69b085fca 100644 --- a/common/exechelp.h +++ b/common/exechelp.h @@ -210,10 +210,6 @@ gpg_error_t gnupg_spawn_process_detached (const char *pgmname, /* The opaque type for a subprocess. */ typedef struct gnupg_process *gnupg_process_t; -struct spawn_cb_arg { - int std_fds[3]; - void *arg; -}; /* Internal flag to ihnerit file descriptor/handle */ #define GNUPG_PROCESS_INHERIT_FILE (1 << 0) @@ -240,7 +236,7 @@ struct spawn_cb_arg { /* Spawn PGMNAME. */ gpg_err_code_t gnupg_process_spawn (const char *pgmname, const char *argv[], unsigned int flags, - int (*spawn_cb) (struct spawn_cb_arg *), + int (*spawn_cb) (void *), void *spawn_cb_arg, gnupg_process_t *r_process); |