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 --- include/utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/utils.h') diff --git a/include/utils.h b/include/utils.h index 380b020..fad64e8 100644 --- a/include/utils.h +++ b/include/utils.h @@ -10,7 +10,7 @@ #include "config.h" #ifdef HAVE_VISIBILITY_HIDDEN # define __visible __attribute__((visibility("default"))) -# define EXPORT_SYMBOL(x) typeof(x) (x) __visible +# define EXPORT_SYMBOL(y, x) typeof(x) (x) __visible; __typeof (x) y __attribute ((alias (#x), visibility ("default"))) #else # define EXPORT_SYMBOL #endif -- cgit v1.2.3