From fe73d7d8854efda86d4d09757874c48352e6b247 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 19 Nov 2010 13:07:48 +0100 Subject: build: tag function headers rather than decls as exported Signed-off-by: Pablo Neira Ayuso --- src/callback.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/callback.c') diff --git a/src/callback.c b/src/callback.c index 7bacb69..eaa5271 100644 --- a/src/callback.c +++ b/src/callback.c @@ -9,6 +9,7 @@ #include #include +#include "internal.h" static int mnl_cb_noop(const struct nlmsghdr *nlh, void *data) { @@ -74,9 +75,10 @@ static const mnl_cb_t default_cb_array[NLMSG_MIN_TYPE] = { * is set to ESRCH. If the sequence number is not the expected, errno is set * to EPROTO. */ -int mnl_cb_run2(const void *buf, size_t numbytes, unsigned int seq, - unsigned int portid, mnl_cb_t cb_data, void *data, - mnl_cb_t *cb_ctl_array, unsigned int cb_ctl_array_len) +EXPORT_SYMBOL int +mnl_cb_run2(const void *buf, size_t numbytes, unsigned int seq, + unsigned int portid, mnl_cb_t cb_data, void *data, + mnl_cb_t *cb_ctl_array, unsigned int cb_ctl_array_len) { int ret = MNL_CB_OK, len = numbytes; const struct nlmsghdr *nlh = buf; @@ -136,8 +138,9 @@ out: * * This function propagates the callback return value. */ -int mnl_cb_run(const void *buf, size_t numbytes, unsigned int seq, - unsigned int portid, mnl_cb_t cb_data, void *data) +EXPORT_SYMBOL int +mnl_cb_run(const void *buf, size_t numbytes, unsigned int seq, + unsigned int portid, mnl_cb_t cb_data, void *data) { return mnl_cb_run2(buf, numbytes, seq, portid, cb_data, data, NULL, 0); } -- cgit v1.2.3