diff options
author | Jamal Hadi Salim <hadi@cyberus.ca> | 2009-02-11 13:00:02 +0100 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2009-02-11 13:00:02 +0100 |
commit | 84c3055bf08d0a8fe5db6e5f3f96dd826a290147 (patch) | |
tree | c66e311cd6fba61bac93caf3bd787ee3560066cf /include/xtables.h.in | |
parent | 8e90ce66a99e5dc9b055a9fd14e8e9216f90233c (diff) |
libxtables: define xtables_free_opts()
Introduce xtables_free_opts() an xtables variant of
free_opts() which uses xtables_globals already set
by xtables_set_params(). The end goal is to have all internal
references in xtables.c use xtables_free_opts() instead of
depending on external defined free_opts()
Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include/xtables.h.in')
-rw-r--r-- | include/xtables.h.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/xtables.h.in b/include/xtables.h.in index 61dbc767..1d333942 100644 --- a/include/xtables.h.in +++ b/include/xtables.h.in @@ -204,6 +204,7 @@ extern void *xtables_malloc(size_t); extern int xtables_insmod(const char *, const char *, bool); extern int xtables_load_ko(const char *, bool); int xtables_set_params(struct xtables_globals *xtp); +void xtables_free_opts(int reset_offset, struct option *original_opts); extern struct xtables_match *xtables_find_match(const char *name, enum xtables_tryload, struct xtables_rule_match **match); |