From: Fernando Fernandez Mancera Date: Wed, 22 Aug 2018 15:03:45 +0000 (+0200) Subject: src: mnl: make nft_mnl_talk() public X-Git-Tag: v0.9.1~312 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ecfaa2a9f5191823a3c3cd19b760fcb69f7d38d;p=thirdparty%2Fnftables.git src: mnl: make nft_mnl_talk() public As we are going to use the function nft_mnl_talk() from the incoming nftnl_osf.c, we make it public. Signed-off-by: Fernando Fernandez Mancera Signed-off-by: Pablo Neira Ayuso --- diff --git a/include/mnl.h b/include/mnl.h index cb131bbc..36109c7a 100644 --- a/include/mnl.h +++ b/include/mnl.h @@ -92,4 +92,8 @@ int mnl_nft_event_listener(struct mnl_socket *nf_sock, unsigned int debug_mask, int (*cb)(const struct nlmsghdr *nlh, void *data), void *cb_data); +int nft_mnl_talk(struct netlink_ctx *ctx, const void *data, unsigned int len, + int (*cb)(const struct nlmsghdr *nlh, void *data), + void *cb_data); + #endif /* _NFTABLES_MNL_H_ */ diff --git a/src/mnl.c b/src/mnl.c index 42eacab7..6a6d45ce 100644 --- a/src/mnl.c +++ b/src/mnl.c @@ -66,7 +66,7 @@ out: return ret; } -static int +int nft_mnl_talk(struct netlink_ctx *ctx, const void *data, unsigned int len, int (*cb)(const struct nlmsghdr *nlh, void *data), void *cb_data) {