gwenhywfar  4.12.0beta
process.h
Go to the documentation of this file.
1 /***************************************************************************
2  begin : Sat Dec 27 2003
3  copyright : (C) 2003-2010 by Martin Preuss
4  email : martin@libchipcard.de
5 
6 
7  ***************************************************************************
8  * *
9  * This library is free software; you can redistribute it and/or *
10  * modify it under the terms of the GNU Lesser General Public *
11  * License as published by the Free Software Foundation; either *
12  * version 2.1 of the License, or (at your option) any later version. *
13  * *
14  * This library is distributed in the hope that it will be useful, *
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
17  * Lesser General Public License for more details. *
18  * *
19  * You should have received a copy of the GNU Lesser General Public *
20  * License along with this library; if not, write to the Free Software *
21  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, *
22  * MA 02111-1307 USA *
23  * *
24  ***************************************************************************/
25 
26 
27 #ifndef GWENHYWFAR_PROCESS_H
28 #define GWENHYWFAR_PROCESS_H
29 
31 #include <gwenhywfar/types.h>
32 #include <gwenhywfar/syncio.h>
33 #include <gwenhywfar/error.h>
34 
36 #define GWEN_PROCESS_FLAGS_REDIR_STDIN 0x00000001
37 
38 #define GWEN_PROCESS_FLAGS_REDIR_STDOUT 0x00000002
39 
40 #define GWEN_PROCESS_FLAGS_REDIR_STDERR 0x00000004
41 
42 #define GWEN_PROCESS_FLAGS_DEFAULT 0
43 
44 
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
48 
49  typedef struct GWEN_PROCESS GWEN_PROCESS;
50 
54  typedef enum {
69 
70 
76 
84 
90  uint32_t GWEN_Process_GetFlags(const GWEN_PROCESS *pr);
91 
97  void GWEN_Process_SetFlags(GWEN_PROCESS *pr, uint32_t f);
98 
104  void GWEN_Process_AddFlags(GWEN_PROCESS *pr, uint32_t f);
105 
111  void GWEN_Process_SubFlags(GWEN_PROCESS *pr, uint32_t f);
112 
121  const char *prg,
122  const char *args);
123 
128 
134 
139 
146 
154 
162 
170 
171 
172 #ifdef __cplusplus
173 }
174 #endif
175 
176 
177 #endif /* GWENHYWFAR_PROCESS_H */
178 
179