X-Git-Url: http://git.archive.openwrt.org/?p=project%2Ffirewall3.git;a=blobdiff_plain;f=ipsets.h;h=9704177725b57cf571da6e82970a02a51fb2fe13;hp=186a4171b1bd4e1f4d791f491c906388d49db544;hb=ad958ff26d73f61b6619112564ea5695e024024a;hpb=54c0625e83a5ddf77e1753885c96f488ba38f78a diff --git a/ipsets.h b/ipsets.h index 186a417..9704177 100644 --- a/ipsets.h +++ b/ipsets.h @@ -19,18 +19,22 @@ #ifndef __FW3_IPSETS_H #define __FW3_IPSETS_H +#include + #include "options.h" #include "utils.h" + extern const struct fw3_option fw3_ipset_opts[]; struct fw3_ipset * fw3_alloc_ipset(void); void fw3_load_ipsets(struct fw3_state *state, struct uci_package *p); void fw3_create_ipsets(struct fw3_state *state); -void fw3_destroy_ipsets(struct fw3_state *state, enum fw3_family family); +void fw3_destroy_ipsets(struct fw3_state *state); + +struct fw3_ipset * fw3_lookup_ipset(struct fw3_state *state, const char *name); -struct fw3_ipset * fw3_lookup_ipset(struct fw3_state *state, const char *name, - bool running); +bool fw3_check_ipset(struct fw3_ipset *set); #define fw3_free_ipset(ipset) \ fw3_free_object(ipset, fw3_ipset_opts)