proc.h | proc.h | |||
---|---|---|---|---|
skipping to change at line 13 | skipping to change at line 13 | |||
#ifndef __cplusplus | #ifndef __cplusplus | |||
# include <stdbool.h> | # include <stdbool.h> | |||
#endif | #endif | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
enum { | enum { | |||
HXPROC_VERBOSE = 1 << 0, | HXPROC_VERBOSE = 1 << 0, | |||
HXPROC_EXECV = 1 << 1, | HXPROC_EXECV = 1 << 1, | |||
HXPROC_A0 = 1 << 2, | HXPROC_A0 = 1 << 2, | |||
HXPROC_STDIN = 1 << 3, | HXPROC_STDIN = 1 << 3, | |||
HXPROC_STDOUT = 1 << 4, | HXPROC_STDOUT = 1 << 4, | |||
HXPROC_STDERR = 1 << 5, | HXPROC_STDERR = 1 << 5, | |||
HXPROC_NULL_STDIN = 1 << 6, | ||||
HXPROC_NULL_STDOUT = 1 << 7, | ||||
HXPROC_NULL_STDERR = 1 << 8, | ||||
}; | }; | |||
struct HXproc_ops { | struct HXproc_ops { | |||
void (*p_prefork)(void *); | void (*p_prefork)(void *); | |||
void (*p_postfork)(void *); | void (*p_postfork)(void *); | |||
void (*p_complete)(void *); | void (*p_complete)(void *); | |||
}; | }; | |||
struct HXproc { | struct HXproc { | |||
const struct HXproc_ops *p_ops; | const struct HXproc_ops *p_ops; | |||
End of changes. 1 change blocks. | ||||
6 lines changed or deleted | 9 lines changed or added | |||