diff options
| author | Alexander Wirt <formorer@debian.org> | 2012-06-03 08:49:55 +0200 |
|---|---|---|
| committer | Alexander Wirt <formorer@debian.org> | 2012-06-03 08:49:55 +0200 |
| commit | ceecc8855af313c14e8a164f1cd0399716174398 (patch) | |
| tree | 0d58f5cf7075dea5ff7ddeff6f9a3c89d9eb6352 /include/process.h | |
| parent | 10f2c00aa6ef875e7998838c200681c6ea5eeebe (diff) | |
| parent | ea27bb406e3d8fe9466ba274af38e6f540ff5bfc (diff) | |
| download | conntrack-tools-ceecc8855af313c14e8a164f1cd0399716174398.tar.gz conntrack-tools-ceecc8855af313c14e8a164f1cd0399716174398.zip | |
Merge tag 'upstream/1.2.1'
Upstream version 1.2.1
Diffstat (limited to 'include/process.h')
| -rw-r--r-- | include/process.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/process.h b/include/process.h new file mode 100644 index 0000000..41c7c10 --- /dev/null +++ b/include/process.h @@ -0,0 +1,25 @@ +#ifndef _PROCESS_H_ +#define _PROCESS_H_ + +enum process_type { + CTD_PROC_ANY, /* any type */ + CTD_PROC_FLUSH, /* flush process */ + CTD_PROC_COMMIT, /* commit process */ + CTD_PROC_MAX +}; + +#define CTD_PROC_F_EXCL (1 << 0) /* only one process at a time */ + +struct child_process { + struct list_head head; + int pid; + int type; + void (*cb)(void *data); + void *data; +}; + +int fork_process_new(int type, int flags, void (*cb)(void *data), void *data); +int fork_process_delete(int pid); +void fork_process_dump(int fd); + +#endif |
