From 0e7b6c4983af4ddd3a50c3ce756638af157c7130 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 7 Sep 2015 18:02:50 +0200 Subject: src: get rid of _ATTR_ infix in new nfntl_ definitions The constant names are already large, trim off the _ATTR_ infix in the attribute definitions. Signed-off-by: Pablo Neira Ayuso --- include/libnftnl/table.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'include/libnftnl/table.h') diff --git a/include/libnftnl/table.h b/include/libnftnl/table.h index ca9a5c6..d18d348 100644 --- a/include/libnftnl/table.h +++ b/include/libnftnl/table.h @@ -17,14 +17,14 @@ struct nftnl_table; struct nftnl_table *nftnl_table_alloc(void); void nftnl_table_free(struct nftnl_table *); -enum { - NFTNL_TABLE_ATTR_NAME = 0, - NFTNL_TABLE_ATTR_FAMILY, - NFTNL_TABLE_ATTR_FLAGS, - NFTNL_TABLE_ATTR_USE, - __NFTNL_TABLE_ATTR_MAX +enum nftnl_table_attr { + NFTNL_TABLE_NAME = 0, + NFTNL_TABLE_FAMILY, + NFTNL_TABLE_FLAGS, + NFTNL_TABLE_USE, + __NFTNL_TABLE_MAX }; -#define NFTNL_TABLE_ATTR_MAX (__NFTNL_TABLE_ATTR_MAX - 1) +#define NFTNL_TABLE_MAX (__NFTNL_TABLE_MAX - 1) bool nftnl_table_attr_is_set(const struct nftnl_table *t, uint16_t attr); void nftnl_table_attr_unset(struct nftnl_table *t, uint16_t attr); -- cgit v1.2.3