summaryrefslogtreecommitdiffstats
path: root/include/process.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2009-06-11 19:34:50 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2009-06-11 19:34:50 +0200
commit5e696e022d8383bc7abe6e6ba37c2664679fe81f (patch)
tree34ab3159dda9efbdf352236a60a1b1236eb17525 /include/process.h
parent0121fd74b805a6490f005c835b3994fa06487395 (diff)
conntrackd: allow to limit the number of simultaneous child processes
This patch allows to limit the number of simultaneous child processes. This is required by the next patch that replaces disposable handlers to commit and flush with permanent handlers. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/process.h')
-rw-r--r--include/process.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/process.h b/include/process.h
index a7f07ea..9d29f22 100644
--- a/include/process.h
+++ b/include/process.h
@@ -1,14 +1,23 @@
#ifndef _PROCESS_H_
#define _PROCESS_H_
+enum process_type {
+ CTD_PROC_ANY, /* any type */
+ CTD_PROC_FLUSH, /* flush process */
+ CTD_PROC_COMMIT, /* commit process */
+};
+
+#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(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);
#endif