aboutsummaryrefslogtreecommitdiffstats
path: root/g10/exec.h
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2019-07-25 02:21:58 +0000
committerNIIBE Yutaka <[email protected]>2019-07-25 02:21:58 +0000
commitc57c5004ec6cc7dc7b7a4f250516199a8a1e31fc (patch)
treec81e2830a0c35a2f97ead8a59e3fcbc234706b19 /g10/exec.h
parentscd: Handle CCID bwi of time extension. (diff)
downloadgnupg-c57c5004ec6cc7dc7b7a4f250516199a8a1e31fc.tar.gz
gnupg-c57c5004ec6cc7dc7b7a4f250516199a8a1e31fc.zip
gpg: photoid: Move functions from exec.c.
* g10/exec.c (w32_system): Expose to public. (exec_write, exec_read, exec_finish, make_tempdir, expand_args): Move to photoid.c. * g10/exec.h: Likewise. * g10/photoid.c (exec_write, exec_read, exec_finish, make_tempdir) (expand_args): Move here. Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'g10/exec.h')
-rw-r--r--g10/exec.h27
1 files changed, 1 insertions, 26 deletions
diff --git a/g10/exec.h b/g10/exec.h
index 1cb1c7208..6b24d1c51 100644
--- a/g10/exec.h
+++ b/g10/exec.h
@@ -20,32 +20,7 @@
#ifndef _EXEC_H_
#define _EXEC_H_
-#include <unistd.h>
-#include <stdio.h>
-
-#include "../common/iobuf.h"
-
-struct exec_info
-{
- int progreturn;
- struct
- {
- unsigned int binary:1;
- unsigned int writeonly:1;
- unsigned int madedir:1;
- unsigned int use_temp_files:1;
- unsigned int keep_temp_files:1;
- } flags;
- pid_t child;
- FILE *tochild;
- iobuf_t fromchild;
- char *command,*name,*tempdir,*tempfile_in,*tempfile_out;
-};
-
-int exec_write(struct exec_info **info,const char *program,
- const char *args_in,const char *name,int writeonly,int binary);
-int exec_read(struct exec_info *info);
-int exec_finish(struct exec_info *info);
int set_exec_path(const char *path);
+int w32_system(const char *command);
#endif /* !_EXEC_H_ */