From 4d38878b39be44ea3d6a146a7dd678c269a9804a Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sun, 27 Nov 2016 23:34:53 +0100 Subject: src: add/create/delete stateful objects This patch allows you to add and to delete objects, eg. # nft add quota filter test 1234567 bytes # nft list quotas table ip filter { quota test { 1234567 bytes } } # nft delete quota filter test Signed-off-by: Pablo Neira Ayuso --- include/rule.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/rule.h') diff --git a/include/rule.h b/include/rule.h index e0f89139..88acbcc7 100644 --- a/include/rule.h +++ b/include/rule.h @@ -282,7 +282,7 @@ struct obj *obj_alloc(const struct location *loc); void obj_free(struct obj *obj); void obj_add_hash(struct obj *obj, struct table *table); void obj_print(const struct obj *n); -const char *obj_type_name(enum stmt_types type); +const char *obj_type_name(uint32_t type); /** * enum cmd_ops - command operations @@ -415,6 +415,7 @@ struct cmd { struct table *table; struct monitor *monitor; struct export *export; + struct obj *object; }; const void *arg; }; -- cgit v1.2.3