diff options
author | Phil Sutter <phil@nwl.cc> | 2018-09-19 16:25:56 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-11-13 12:12:47 +0100 |
commit | 341279e09071de01a06bde6cf988d5ec671fe0d1 (patch) | |
tree | a289aad3da0d01f81a4ef9ca4e09c3af9a35d5b7 /include | |
parent | bba6bc692b0e6137e13881a1f398c134822e9f83 (diff) |
libiptc: Extend struct xtc_ops
Add a few more callbacks used by iptables-save.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/libiptc/xtcshared.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libiptc/xtcshared.h b/include/libiptc/xtcshared.h index 773ebc4c..341f9d4f 100644 --- a/include/libiptc/xtcshared.h +++ b/include/libiptc/xtcshared.h @@ -7,11 +7,16 @@ struct xt_counters; struct xtc_ops { int (*commit)(struct xtc_handle *); + struct xtc_handle *(*init)(const char *); 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 *); + const char *(*first_chain)(struct xtc_handle *); + const char *(*next_chain)(struct xtc_handle *); + const char *(*get_policy)(const char *, struct xt_counters *, + struct xtc_handle *); int (*set_policy)(const xt_chainlabel, const xt_chainlabel, struct xt_counters *, struct xtc_handle *); const char *(*strerror)(int); |