summaryrefslogtreecommitdiffstats
path: root/src/rule.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rule.c')
-rw-r--r--src/rule.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rule.c b/src/rule.c
index 5a4ae91..aa7aee8 100644
--- a/src/rule.c
+++ b/src/rule.c
@@ -867,6 +867,12 @@ void nft_rule_list_free(struct nft_rule_list *list)
}
EXPORT_SYMBOL(nft_rule_list_free);
+int nft_rule_list_is_empty(struct nft_rule_list *list)
+{
+ return list_empty(&list->list);
+}
+EXPORT_SYMBOL(nft_rule_list_is_empty);
+
void nft_rule_list_add(struct nft_rule *r, struct nft_rule_list *list)
{
list_add_tail(&r->head, &list->list);