From d163ba4dbf1446adfb9b727c305e8267f4f8013f Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 24 Apr 2018 01:05:12 +0200 Subject: netlink: don't pass location to netlink_list_*() function Not needed anymore. Signed-off-by: Pablo Neira Ayuso --- include/netlink.h | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'include') 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, -- cgit v1.2.3