summaryrefslogtreecommitdiffstats
path: root/src/table.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/table.c')
-rw-r--r--src/table.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/table.c b/src/table.c
index 27fa8fc..9ec4117 100644
--- a/src/table.c
+++ b/src/table.c
@@ -410,6 +410,12 @@ void nft_table_list_free(struct nft_table_list *list)
}
EXPORT_SYMBOL(nft_table_list_free);
+int nft_table_list_is_empty(struct nft_table_list *list)
+{
+ return list_empty(&list->list);
+}
+EXPORT_SYMBOL(nft_table_list_is_empty);
+
void nft_table_list_add(struct nft_table *r, struct nft_table_list *list)
{
list_add_tail(&r->head, &list->list);