diff mbox series

[2/3,nft,v3] src: mnl: make nft_mnl_talk() public

Message ID 20180821205008.7258-2-ffmancera@riseup.net
State Changes Requested
Delegated to: Pablo Neira
Headers show
Series [1/3,nft,v3] files: osf: copy iptables/utils/pf.os into nftables tree | expand

Commit Message

Fernando F. Mancera Aug. 21, 2018, 8:50 p.m. UTC
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 <ffmancera@riseup.net>
---
 include/mnl.h | 4 ++++
 src/mnl.c     | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/include/mnl.h b/include/mnl.h
index cb131bb..36109c7 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 42eacab..6a6d45c 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)
 {