diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-09-07 18:02:50 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-09-07 20:01:05 +0200 |
commit | 0e7b6c4983af4ddd3a50c3ce756638af157c7130 (patch) | |
tree | 2a2a0245283905a7540a292c5181926e6070ad4a /include/libnftnl/table.h | |
parent | d549a220dc3cd3294f4b16a5c04c9df298835486 (diff) |
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 <pablo@netfilter.org>
Diffstat (limited to 'include/libnftnl/table.h')
-rw-r--r-- | include/libnftnl/table.h | 14 |
1 files changed, 7 insertions, 7 deletions
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); |