2004-02-26 Marcus Brinkmann <marcus@g10code.de>
[gnupg.git] / g10 / exec.h
blobeda40689456d9f99fb126d1758564861ba0b8e19
1 /* exec.h
2 * Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
4 * This file is part of GnuPG.
6 * GnuPG is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * GnuPG is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
21 #ifndef _EXEC_H_
22 #define _EXEC_H_
24 #include <unistd.h>
25 #include <stdio.h>
26 #include "../common/iobuf.h"
28 struct exec_info
30 int progreturn,binary,writeonly,madedir,use_temp_files,keep_temp_files;
31 pid_t child;
32 FILE *tochild;
33 iobuf_t fromchild;
34 char *command,*name,*tempdir,*tempfile_in,*tempfile_out;
37 int exec_write(struct exec_info **info,const char *program,
38 const char *args_in,const char *name,int writeonly,int binary);
39 int exec_read(struct exec_info *info);
40 int exec_finish(struct exec_info *info);
41 int set_exec_path(const char *path,int method);
43 #endif /* !_EXEC_H_ */