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/batch.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/batch.c') diff --git a/src/batch.c b/src/batch.c index ec9f728..3f53218 100644 --- a/src/batch.c +++ b/src/batch.c @@ -80,7 +80,7 @@ err1: free(batch); return NULL; } -EXPORT_SYMBOL(nft_batch_alloc); +EXPORT_SYMBOL(nftnl_batch_alloc, nft_batch_alloc); void nft_batch_free(struct nft_batch *batch) { @@ -94,7 +94,7 @@ void nft_batch_free(struct nft_batch *batch) free(batch); } -EXPORT_SYMBOL(nft_batch_free); +EXPORT_SYMBOL(nftnl_batch_free, nft_batch_free); int nft_batch_update(struct nft_batch *batch) { @@ -119,19 +119,19 @@ int nft_batch_update(struct nft_batch *batch) err1: return -1; } -EXPORT_SYMBOL(nft_batch_update); +EXPORT_SYMBOL(nftnl_batch_update, nft_batch_update); void *nft_batch_buffer(struct nft_batch *batch) { return mnl_nlmsg_batch_current(batch->current_page->batch); } -EXPORT_SYMBOL(nft_batch_buffer); +EXPORT_SYMBOL(nftnl_batch_buffer, nft_batch_buffer); uint32_t nft_batch_buffer_len(struct nft_batch *batch) { return mnl_nlmsg_batch_size(batch->current_page->batch); } -EXPORT_SYMBOL(nft_batch_buffer_len); +EXPORT_SYMBOL(nftnl_batch_buffer_len, nft_batch_buffer_len); int nft_batch_iovec_len(struct nft_batch *batch) { @@ -143,7 +143,7 @@ int nft_batch_iovec_len(struct nft_batch *batch) return num_pages; } -EXPORT_SYMBOL(nft_batch_iovec_len); +EXPORT_SYMBOL(nftnl_batch_iovec_len, nft_batch_iovec_len); void nft_batch_iovec(struct nft_batch *batch, struct iovec *iov, uint32_t iovlen) { @@ -159,4 +159,4 @@ void nft_batch_iovec(struct nft_batch *batch, struct iovec *iov, uint32_t iovlen i++; } } -EXPORT_SYMBOL(nft_batch_iovec); +EXPORT_SYMBOL(nftnl_batch_iovec, nft_batch_iovec); -- cgit v1.2.3