From 3bcf3bae07405e3463f111edf21bf5d1facf9cad Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 16 May 2013 18:34:47 +0200 Subject: table: add nft_table_attr_[set|table]_str Signed-off-by: Pablo Neira Ayuso --- include/libnftables/table.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/libnftables/table.h b/include/libnftables/table.h index c50650f..55096f8 100644 --- a/include/libnftables/table.h +++ b/include/libnftables/table.h @@ -22,7 +22,9 @@ void nft_table_attr_set(struct nft_table *t, uint16_t attr, const void *data); const void *nft_table_attr_get(struct nft_table *t, uint16_t attr); void nft_table_attr_set_u32(struct nft_table *t, uint16_t attr, uint32_t data); +void nft_table_attr_set_str(struct nft_table *t, uint16_t attr, const char *str); uint32_t nft_table_attr_get_u32(struct nft_table *t, uint16_t attr); +const char *nft_table_attr_get_str(struct nft_table *t, uint16_t attr); void nft_table_nlmsg_build_payload(struct nlmsghdr *nlh, const struct nft_table *t); -- cgit v1.2.3