diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-09-17 16:16:22 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-09-17 16:17:59 +0200 |
commit | a0274efd21f022d4416da03a5a19be5b61f225c1 (patch) | |
tree | f991bbcc881be85a3edf1d76295272c7de0bd1a4 /include/libnftables/rule.h | |
parent | 86ef92a88776bcb8a6d3a403ee2bb0ea2e3eb937 (diff) |
src: add nft_*_list_del
This allows us to delete object from the list, note that
nft_chain_list_del already existed.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/libnftables/rule.h')
-rw-r--r-- | include/libnftables/rule.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libnftables/rule.h b/include/libnftables/rule.h index af9a0f3..9fba9c8 100644 --- a/include/libnftables/rule.h +++ b/include/libnftables/rule.h @@ -78,6 +78,7 @@ void nft_rule_list_free(struct nft_rule_list *list); int nft_rule_list_is_empty(struct nft_rule_list *list); void nft_rule_list_add(struct nft_rule *r, struct nft_rule_list *list); void nft_rule_list_add_tail(struct nft_rule *r, struct nft_rule_list *list); +void nft_rule_list_del(struct nft_rule *r); int nft_rule_list_foreach(struct nft_rule_list *rule_list, int (*cb)(struct nft_rule *t, void *data), void *data); struct nft_rule_list_iter; |