summaryrefslogtreecommitdiffstats
path: root/include/libnftnl/table.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2015-09-07 18:57:50 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2015-09-07 20:01:06 +0200
commit44d11498479a08f46a64431d60ed19d4aba94dad (patch)
treedadacc81e466ae82d285945de6a8e1a5078db327 /include/libnftnl/table.h
parent0e7b6c4983af4ddd3a50c3ce756638af157c7130 (diff)
src: get rid of _attr_ infix in new nftnl_ definitions
The function 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.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/include/libnftnl/table.h b/include/libnftnl/table.h
index d18d348..c52d579 100644
--- a/include/libnftnl/table.h
+++ b/include/libnftnl/table.h
@@ -26,21 +26,21 @@ enum nftnl_table_attr {
};
#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);
-void nftnl_table_attr_set(struct nftnl_table *t, uint16_t attr, const void *data);
-void nftnl_table_attr_set_data(struct nftnl_table *t, uint16_t attr,
+bool nftnl_table_is_set(const struct nftnl_table *t, uint16_t attr);
+void nftnl_table_unset(struct nftnl_table *t, uint16_t attr);
+void nftnl_table_set(struct nftnl_table *t, uint16_t attr, const void *data);
+void nftnl_table_set_data(struct nftnl_table *t, uint16_t attr,
const void *data, uint32_t data_len);
-const void *nftnl_table_attr_get(struct nftnl_table *t, uint16_t attr);
-const void *nftnl_table_attr_get_data(struct nftnl_table *t, uint16_t attr,
+const void *nftnl_table_get(struct nftnl_table *t, uint16_t attr);
+const void *nftnl_table_get_data(struct nftnl_table *t, uint16_t attr,
uint32_t *data_len);
-void nftnl_table_attr_set_u8(struct nftnl_table *t, uint16_t attr, uint8_t data);
-void nftnl_table_attr_set_u32(struct nftnl_table *t, uint16_t attr, uint32_t data);
-void nftnl_table_attr_set_str(struct nftnl_table *t, uint16_t attr, const char *str);
-uint8_t nftnl_table_attr_get_u8(struct nftnl_table *t, uint16_t attr);
-uint32_t nftnl_table_attr_get_u32(struct nftnl_table *t, uint16_t attr);
-const char *nftnl_table_attr_get_str(struct nftnl_table *t, uint16_t attr);
+void nftnl_table_set_u8(struct nftnl_table *t, uint16_t attr, uint8_t data);
+void nftnl_table_set_u32(struct nftnl_table *t, uint16_t attr, uint32_t data);
+void nftnl_table_set_str(struct nftnl_table *t, uint16_t attr, const char *str);
+uint8_t nftnl_table_get_u8(struct nftnl_table *t, uint16_t attr);
+uint32_t nftnl_table_get_u32(struct nftnl_table *t, uint16_t attr);
+const char *nftnl_table_get_str(struct nftnl_table *t, uint16_t attr);
struct nlmsghdr;