diff options
author | root <root@build-vm.(none)> | 2010-06-14 15:51:25 -0700 |
---|---|---|
committer | root <root@build-vm.(none)> | 2010-06-14 15:51:25 -0700 |
commit | c4414d9a8b31bedfb7471cd2365aaf5ea5cf55d5 (patch) | |
tree | 86ee5befd8195f56dcd91f9fd4e06368bf507a11 /include/process.h | |
download | conntrack-tools-c4414d9a8b31bedfb7471cd2365aaf5ea5cf55d5.tar.gz conntrack-tools-c4414d9a8b31bedfb7471cd2365aaf5ea5cf55d5.zip |
debian conntrack 0.9.14-2
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 |