summaryrefslogtreecommitdiff
path: root/include/sync.h
diff options
context:
space:
mode:
authorroot <root@build-vm.(none)>2010-06-14 15:51:25 -0700
committerroot <root@build-vm.(none)>2010-06-14 15:51:25 -0700
commitc4414d9a8b31bedfb7471cd2365aaf5ea5cf55d5 (patch)
tree86ee5befd8195f56dcd91f9fd4e06368bf507a11 /include/sync.h
downloadconntrack-tools-c4414d9a8b31bedfb7471cd2365aaf5ea5cf55d5.tar.gz
conntrack-tools-c4414d9a8b31bedfb7471cd2365aaf5ea5cf55d5.zip
debian conntrack 0.9.14-2
Diffstat (limited to 'include/sync.h')
-rw-r--r--include/sync.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/sync.h b/include/sync.h
new file mode 100644
index 0000000..51f8f5b
--- /dev/null
+++ b/include/sync.h
@@ -0,0 +1,28 @@
+#ifndef _SYNC_HOOKS_H_
+#define _SYNC_HOOKS_H_
+
+#include <sys/select.h>
+
+struct nethdr;
+struct cache_object;
+struct fds;
+
+struct sync_mode {
+ int internal_cache_flags;
+ int external_cache_flags;
+ struct cache_extra *internal_cache_extra;
+ struct cache_extra *external_cache_extra;
+
+ int (*init)(void);
+ void (*kill)(void);
+ int (*local)(int fd, int type, void *data);
+ int (*recv)(const struct nethdr *net);
+ void (*enqueue)(struct cache_object *obj, int type);
+ void (*xmit)(void);
+};
+
+extern struct sync_mode sync_alarm;
+extern struct sync_mode sync_ftfw;
+extern struct sync_mode sync_notrack;
+
+#endif