summaryrefslogtreecommitdiffstats
path: root/include/libiptc/xtcshared.h
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2011-12-18 03:10:56 +0100
committerJan Engelhardt <jengelh@medozas.de>2011-12-18 03:10:57 +0100
commit32a4b7dcaf252348732362cd6d853bf0005b2bdd (patch)
treea0cb75f98e4a09b75a8d51095f4a39769d778c74 /include/libiptc/xtcshared.h
parentb8c42eca0f224a00bf55b60ded81af14a1e07da1 (diff)
parent79ddbf202a06e6f018e087a328c2ca91e65a8463 (diff)
Merge branch 'stable'
Diffstat (limited to 'include/libiptc/xtcshared.h')
-rw-r--r--include/libiptc/xtcshared.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/libiptc/xtcshared.h b/include/libiptc/xtcshared.h
new file mode 100644
index 00000000..773ebc4c
--- /dev/null
+++ b/include/libiptc/xtcshared.h
@@ -0,0 +1,20 @@
+#ifndef _LIBXTC_SHARED_H
+#define _LIBXTC_SHARED_H 1
+
+typedef char xt_chainlabel[32];
+struct xtc_handle;
+struct xt_counters;
+
+struct xtc_ops {
+ int (*commit)(struct xtc_handle *);
+ void (*free)(struct xtc_handle *);
+ int (*builtin)(const char *, struct xtc_handle *const);
+ int (*is_chain)(const char *, struct xtc_handle *const);
+ int (*flush_entries)(const xt_chainlabel, struct xtc_handle *);
+ int (*create_chain)(const xt_chainlabel, struct xtc_handle *);
+ int (*set_policy)(const xt_chainlabel, const xt_chainlabel,
+ struct xt_counters *, struct xtc_handle *);
+ const char *(*strerror)(int);
+};
+
+#endif /* _LIBXTC_SHARED_H */