path: root/include/libnftables/set.h
diff options
authorArturo Borrero <>2013-07-11 10:44:13 +0200
committerPablo Neira Ayuso <>2013-07-15 13:09:11 +0200
commitef23c5a37590d7b444d9d6bdfd764cf9fbd4c308 (patch)
tree35801a12918f1aa8cc474f0eba033ee12ce22f28 /include/libnftables/set.h
parentef8f2163fa30791c7561b958773d1aa6ebfb1469 (diff)
src: add nft_*_list_is_empty() functions
This functions check if a given nft_*_list is empty or not. I found this quite useful while working with a full ruleset. Signed-off-by: Arturo Borrero Gonzalez <> Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'include/libnftables/set.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libnftables/set.h b/include/libnftables/set.h
index 5c77945..4a94a85 100644
--- a/include/libnftables/set.h
+++ b/include/libnftables/set.h
@@ -41,6 +41,7 @@ struct nft_set_list;
struct nft_set_list *nft_set_list_alloc(void);
void nft_set_list_free(struct nft_set_list *list);
+int nft_set_list_is_empty(struct nft_set_list *list);
void nft_set_list_add(struct nft_set *s, struct nft_set_list *list);
int nft_set_list_foreach(struct nft_set_list *set_list, int (*cb)(struct nft_set *t, void *data), void *data);