diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-04-24 01:05:12 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-04-24 01:11:50 +0200 |
commit | d163ba4dbf1446adfb9b727c305e8267f4f8013f (patch) | |
tree | a9a1648932940ae4fcea35b161e82c55a69b8179 /include | |
parent | b7c658fff3a41fa58fcbcd229e1b1f0f4be03b3c (diff) |
netlink: don't pass location to netlink_list_*() function
Not needed anymore.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/netlink.h | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/include/netlink.h b/include/netlink.h index 81eaaa25..58b37d3c 100644 --- a/include/netlink.h +++ b/include/netlink.h @@ -129,8 +129,7 @@ extern int netlink_rename_chain_batch(struct netlink_ctx *ctx, const struct cmd *cmd); extern int netlink_delete_chain_batch(struct netlink_ctx *ctx, const struct cmd *cmd); -extern int netlink_list_chains(struct netlink_ctx *ctx, const struct handle *h, - const struct location *loc); +extern int netlink_list_chains(struct netlink_ctx *ctx, const struct handle *h); extern int netlink_flush_chain(struct netlink_ctx *ctx, const struct cmd *cmd); extern struct chain *netlink_delinearize_chain(struct netlink_ctx *ctx, const struct nftnl_chain *nlc); @@ -139,10 +138,8 @@ extern int netlink_add_table_batch(struct netlink_ctx *ctx, const struct cmd *cmd, uint32_t flags); extern int netlink_delete_table_batch(struct netlink_ctx *ctx, const struct cmd *cmd); -extern int netlink_list_tables(struct netlink_ctx *ctx, const struct handle *h, - const struct location *loc); -extern int netlink_list_table(struct netlink_ctx *ctx, const struct handle *h, - const struct location *loc); +extern int netlink_list_tables(struct netlink_ctx *ctx, const struct handle *h); +extern int netlink_list_table(struct netlink_ctx *ctx, const struct handle *h); extern int netlink_flush_table(struct netlink_ctx *ctx, const struct cmd *cmd); extern struct table *netlink_delinearize_table(struct netlink_ctx *ctx, const struct nftnl_table *nlt); @@ -151,8 +148,7 @@ extern int netlink_add_set_batch(struct netlink_ctx *ctx, const struct cmd *cmd, uint32_t flags); extern int netlink_delete_set_batch(struct netlink_ctx *ctx, const struct cmd *cmd); -extern int netlink_list_sets(struct netlink_ctx *ctx, const struct handle *h, - const struct location *loc); +extern int netlink_list_sets(struct netlink_ctx *ctx, const struct handle *h); extern struct set *netlink_delinearize_set(struct netlink_ctx *ctx, const struct nftnl_set *nls); @@ -174,8 +170,7 @@ extern int netlink_delinearize_setelem(struct nftnl_set_elem *nlse, const struct set *set, struct nft_cache *cache); -extern int netlink_list_objs(struct netlink_ctx *ctx, const struct handle *h, - const struct location *loc); +extern int netlink_list_objs(struct netlink_ctx *ctx, const struct handle *h); extern int netlink_reset_objs(struct netlink_ctx *ctx, const struct cmd *cmd, uint32_t type, bool dump); extern int netlink_add_obj(struct netlink_ctx *ctx, const struct cmd *cmd, @@ -186,8 +181,7 @@ extern struct obj *netlink_delinearize_obj(struct netlink_ctx *ctx, struct nftnl_obj *nlo); extern int netlink_list_flowtables(struct netlink_ctx *ctx, - const struct handle *h, - const struct location *loc); + const struct handle *h); extern int netlink_add_flowtable(struct netlink_ctx *ctx, const struct cmd *cmd, uint32_t flags); extern int netlink_delete_flowtable(struct netlink_ctx *ctx, |