From b7154e52fc417e927bef0bbfa5db6e7a71f28602 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 1 Sep 2015 13:59:54 +0200 Subject: src: introduce nftnl_* aliases for all existing functions This patch introduces the nftnl_ symbols as aliases for the existing nft_ symbols through the EXPORT_SYMBOL(...) macro. We would like to use the nft_* prefix from our upcoming higher level library, meanwhile with this move we avoid that old binaries break because of missing symbol dependencies. Signed-off-by: Pablo Neira Ayuso --- src/common.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/common.c') diff --git a/src/common.c b/src/common.c index d69b522..27f9177 100644 --- a/src/common.c +++ b/src/common.c @@ -40,7 +40,7 @@ struct nlmsghdr *nft_nlmsg_build_hdr(char *buf, uint16_t cmd, uint16_t family, return nlh; } -EXPORT_SYMBOL(nft_nlmsg_build_hdr); +EXPORT_SYMBOL(nftnl_nlmsg_build_hdr, nft_nlmsg_build_hdr); struct nft_parse_err *nft_parse_err_alloc(void) { @@ -54,13 +54,13 @@ struct nft_parse_err *nft_parse_err_alloc(void) return err; } -EXPORT_SYMBOL(nft_parse_err_alloc); +EXPORT_SYMBOL(nftnl_parse_err_alloc, nft_parse_err_alloc); void nft_parse_err_free(struct nft_parse_err *err) { xfree(err); } -EXPORT_SYMBOL(nft_parse_err_free); +EXPORT_SYMBOL(nftnl_parse_err_free, nft_parse_err_free); int nft_parse_perror(const char *msg, struct nft_parse_err *err) { @@ -80,7 +80,7 @@ int nft_parse_perror(const char *msg, struct nft_parse_err *err) return fprintf(stderr, "%s: Undefined error\n", msg); } } -EXPORT_SYMBOL(nft_parse_perror); +EXPORT_SYMBOL(nftnl_parse_perror, nft_parse_perror); int nft_cmd_header_snprintf(char *buf, size_t size, uint32_t cmd, uint32_t type, uint32_t flags) @@ -178,13 +178,13 @@ void nft_batch_begin(char *buf, uint32_t seq) { nft_batch_build_hdr(buf, NFNL_MSG_BATCH_BEGIN, seq); } -EXPORT_SYMBOL(nft_batch_begin); +EXPORT_SYMBOL(nftnl_batch_begin, nft_batch_begin); void nft_batch_end(char *buf, uint32_t seq) { nft_batch_build_hdr(buf, NFNL_MSG_BATCH_END, seq); } -EXPORT_SYMBOL(nft_batch_end); +EXPORT_SYMBOL(nftnl_batch_end, nft_batch_end); int nft_batch_is_supported(void) { @@ -243,4 +243,4 @@ err: mnl_nlmsg_batch_stop(b); return -1; } -EXPORT_SYMBOL(nft_batch_is_supported); +EXPORT_SYMBOL(nftnl_batch_is_supported, nft_batch_is_supported); -- cgit v1.2.3