aboutsummaryrefslogtreecommitdiffstats
path: root/common/exechelp.h
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2022-11-17 06:16:03 +0000
committerNIIBE Yutaka <[email protected]>2022-11-17 06:16:03 +0000
commit4736debd01ecfc0f77f99a257caea174201310fa (patch)
treeb327bca6ed6614c1e5abf9ddb9dd0d5411bd7dc9 /common/exechelp.h
parentcommon,tools,dirmngr: Introduce gnupg_process_spawn. (diff)
downloadgnupg-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.h6
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);