X-Git-Url: http://git.archive.openwrt.org/?p=project%2Ffirewall3.git;a=blobdiff_plain;f=rules.h;h=38d0df748155792ff886d17eb8bfcb2a1e67fc70;hp=db9322031189bae70c3858358031b65eadc5bc62;hb=54c0625e83a5ddf77e1753885c96f488ba38f78a;hpb=8fee8f9c520c58d07772cc6bd8f65d9eb1776a56 diff --git a/rules.h b/rules.h index db93220..38d0df7 100644 --- a/rules.h +++ b/rules.h @@ -24,10 +24,13 @@ #include "ipsets.h" #include "utils.h" +extern const struct fw3_option fw3_rule_opts[]; + void fw3_load_rules(struct fw3_state *state, struct uci_package *p); void fw3_print_rules(enum fw3_table table, enum fw3_family family, struct fw3_state *state); -void fw3_free_rule(struct fw3_rule *rule); +#define fw3_free_rule(rule) \ + fw3_free_object(rule, fw3_rule_opts) #endif