diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-09-01 13:59:54 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-09-02 13:13:09 +0200 |
commit | b7154e52fc417e927bef0bbfa5db6e7a71f28602 (patch) | |
tree | 248ca13d260c891d0399c9335108bff1a99cc375 /src/common.c | |
parent | 37268a018e99181a1d203f0a8a6fc5c6670d09b2 (diff) |
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 <pablo@netfilter.org>
Diffstat (limited to 'src/common.c')
-rw-r--r-- | src/common.c | 14 |
1 files changed, 7 insertions, 7 deletions
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); |