summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-03-12 12:55:32 +0100
committerFlorian Westphal <fw@strlen.de>2018-03-12 17:01:34 +0100
commit62d6fff78b2cb2a0c9d59e18e7047a45f1ffdbbc (patch)
tree2c424d054c0383bccf7b67f194043065edb597b0
parent68b134fef0d3b43b05e45fcf73f593a5a51e920e (diff)
src: remove set/get array api
one-line wrapper, callers can use nftnl_flowtable_get/set instead. Signed-off-by: Florian Westphal <fw@strlen.de>
-rw-r--r--src/flowtable.c12
-rw-r--r--src/libnftnl.map2
2 files changed, 0 insertions, 14 deletions
diff --git a/src/flowtable.c b/src/flowtable.c
index 93df4ec..c1ddae4 100644
--- a/src/flowtable.c
+++ b/src/flowtable.c
@@ -178,12 +178,6 @@ void nftnl_flowtable_set(struct nftnl_flowtable *c, uint16_t attr, const void *d
}
EXPORT_SYMBOL(nftnl_flowtable_set);
-void nftnl_flowtable_set_array(struct nftnl_flowtable *c, uint16_t attr, const char **data)
-{
- nftnl_flowtable_set_data(c, attr, &data[0], nftnl_flowtable_validate[attr]);
-}
-EXPORT_SYMBOL(nftnl_flowtable_set_array);
-
void nftnl_flowtable_set_u32(struct nftnl_flowtable *c, uint16_t attr, uint32_t data)
{
nftnl_flowtable_set_data(c, attr, &data, sizeof(uint32_t));
@@ -272,12 +266,6 @@ int32_t nftnl_flowtable_get_s32(const struct nftnl_flowtable *c, uint16_t attr)
}
EXPORT_SYMBOL(nftnl_flowtable_get_s32);
-const char **nftnl_flowtable_get_array(const struct nftnl_flowtable *c, uint16_t attr)
-{
- return (const char **)nftnl_flowtable_get(c, attr);
-}
-EXPORT_SYMBOL(nftnl_flowtable_get_array);
-
void nftnl_flowtable_nlmsg_build_payload(struct nlmsghdr *nlh,
const struct nftnl_flowtable *c)
{
diff --git a/src/libnftnl.map b/src/libnftnl.map
index ddad53e..a24fe9b 100644
--- a/src/libnftnl.map
+++ b/src/libnftnl.map
@@ -322,12 +322,10 @@ LIBNFTNL_7 {
nftnl_flowtable_set;
nftnl_flowtable_set_u32;
nftnl_flowtable_set_s32;
- nftnl_flowtable_set_array;
nftnl_flowtable_set_str;
nftnl_flowtable_get;
nftnl_flowtable_get_u32;
nftnl_flowtable_get_s32;
- nftnl_flowtable_get_array;
nftnl_flowtable_get_str;
nftnl_flowtable_parse;
nftnl_flowtable_parse_file;