summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2009-04-04 14:10:49 +0200
committerJan Engelhardt <jengelh@medozas.de>2009-04-04 14:10:51 +0200
commitea6f406fa77aa7b4fc52ccc9b572ae96196e570d (patch)
tree4b02cb692a025cb189e101b13e468fc209d56b0c /include
parent517de3d32e3eb261cfa7fce33751f9e37bae7112 (diff)
parentb1d968c30dde563c2738fdacb723c18232fb5ccb (diff)
Merge branch 'plus'
Diffstat (limited to 'include')
-rw-r--r--include/xtables.h.in16
1 files changed, 13 insertions, 3 deletions
diff --git a/include/xtables.h.in b/include/xtables.h.in
index d86276e7..a399f90f 100644
--- a/include/xtables.h.in
+++ b/include/xtables.h.in
@@ -37,6 +37,12 @@ struct in_addr;
/* Include file for additions: new matches and targets. */
struct xtables_match
{
+ /*
+ * ABI/API version this module requires. Must be first member,
+ * as the rest of this struct may be subject to ABI changes.
+ */
+ const char *version;
+
struct xtables_match *next;
const char *name;
@@ -46,8 +52,6 @@ struct xtables_match
u_int16_t family;
- const char *version;
-
/* Size of match data. */
size_t size;
@@ -93,8 +97,15 @@ struct xtables_match
struct xtables_target
{
+ /*
+ * ABI/API version this module requires. Must be first member,
+ * as the rest of this struct may be subject to ABI changes.
+ */
+ const char *version;
+
struct xtables_target *next;
+
const char *name;
/* Revision of target (0 by default). */
@@ -102,7 +113,6 @@ struct xtables_target
u_int16_t family;
- const char *version;
/* Size of target data. */
size_t size;