From: Pablo Neira Ayuso <pablo@netfilter.org>
To: netfilter-devel@vger.kernel.org
Cc: jengelh@inai.de
Subject: [PATCH libnftnl 2/2] src: move new nftnl symbols to new group
Date: Wed, 16 Sep 2015 15:06:52 +0200 [thread overview]
Message-ID: <1442408812-28799-3-git-send-email-pablo@netfilter.org> (raw)
In-Reply-To: <1442408812-28799-1-git-send-email-pablo@netfilter.org>
Add new LIBNFTNL_1.0.5 symbols that use the nftnl_ prefix.
Old symbols prefixed by nft_ will be gone at some point.
Fixes: b7154e52fc41 ("src: introduce nftnl_* aliases for all existing functions")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
---
src/libnftnl.map | 137 ++++++++++++++++++++++++------------------------------
1 file changed, 60 insertions(+), 77 deletions(-)
diff --git a/src/libnftnl.map b/src/libnftnl.map
index 0d04c4e..1189005 100644
--- a/src/libnftnl.map
+++ b/src/libnftnl.map
@@ -192,10 +192,65 @@ global:
nft_parse_err_free;
nft_parse_perror;
-#
-# aliases
-#
+local: *;
+};
+
+LIBNFTNL_1.1 {
+ nft_table_attr_set_data;
+ nft_table_attr_get_data;
+ nft_chain_attr_set_data;
+ nft_chain_attr_get_data;
+ nft_rule_attr_set_data;
+ nft_rule_attr_get_data;
+ nft_set_attr_set_data;
+ nft_set_attr_get_data;
+} LIBNFTNL_1.0;
+
+LIBNFTNL_1.2 {
+ nft_set_elems_nlmsg_build_payload_iter;
+ nft_batch_is_supported;
+ nft_batch_begin;
+ nft_batch_end;
+
+ nft_gen_alloc;
+ nft_gen_free;
+ nft_gen_attr_is_set;
+ nft_gen_attr_unset;
+ nft_gen_attr_set_data;
+ nft_gen_attr_set;
+ nft_gen_attr_set_u32;
+ nft_gen_attr_get_data;
+ nft_gen_attr_get;
+ nft_gen_attr_get_u32;
+ nft_gen_nlmsg_parse;
+ nft_gen_snprintf;
+ nft_gen_fprintf;
+} LIBNFTNL_1.1;
+
+LIBNFTNL_1.2.0 {
+ nft_ruleset_ctx_is_set;
+ nft_ruleset_ctx_get;
+ nft_ruleset_ctx_get_u32;
+ nft_ruleset_parse_file_cb;
+ nft_ruleset_parse_buffer_cb;
+ nft_ruleset_ctx_free;
+ nft_batch_alloc;
+ nft_batch_update;
+ nft_batch_free;
+ nft_batch_buffer;
+ nft_batch_buffer_len;
+ nft_batch_iovec_len;
+ nft_batch_iovec;
+
+ nft_set_attr_set_u64;
+ nft_set_attr_get_u64;
+ nft_set_elem_attr_set_u64;
+ nft_set_elem_attr_get_u64;
+} LIBNFTNL_1.2;
+
+LIBNFTNL_1.0.5 {
+global:
nftnl_table_alloc;
nftnl_table_free;
nftnl_table_is_set;
@@ -392,24 +447,6 @@ global:
nftnl_parse_err_free;
nftnl_parse_perror;
-
-local: *;
-};
-
-LIBNFTNL_1.1 {
- nft_table_attr_set_data;
- nft_table_attr_get_data;
- nft_chain_attr_set_data;
- nft_chain_attr_get_data;
- nft_rule_attr_set_data;
- nft_rule_attr_get_data;
- nft_set_attr_set_data;
- nft_set_attr_get_data;
-
-#
-# aliases
-#
-
nftnl_table_set_data;
nftnl_table_get_data;
nftnl_chain_set_data;
@@ -419,32 +456,6 @@ LIBNFTNL_1.1 {
nftnl_set_set_data;
nftnl_set_get_data;
-} LIBNFTNL_1.0;
-
-LIBNFTNL_1.2 {
- nft_set_elems_nlmsg_build_payload_iter;
- nft_batch_is_supported;
- nft_batch_begin;
- nft_batch_end;
-
- nft_gen_alloc;
- nft_gen_free;
- nft_gen_attr_is_set;
- nft_gen_attr_unset;
- nft_gen_attr_set_data;
- nft_gen_attr_set;
- nft_gen_attr_set_u32;
- nft_gen_attr_get_data;
- nft_gen_attr_get;
- nft_gen_attr_get_u32;
- nft_gen_nlmsg_parse;
- nft_gen_snprintf;
- nft_gen_fprintf;
-
-#
-# aliases
-#
-
nftnl_set_elems_nlmsg_build_payload_iter;
nftnl_batch_is_supported;
nftnl_batch_begin;
@@ -464,34 +475,6 @@ LIBNFTNL_1.2 {
nftnl_gen_snprintf;
nftnl_gen_fprintf;
-
-} LIBNFTNL_1.1;
-
-LIBNFTNL_1.2.0 {
- nft_ruleset_ctx_is_set;
- nft_ruleset_ctx_get;
- nft_ruleset_ctx_get_u32;
- nft_ruleset_parse_file_cb;
- nft_ruleset_parse_buffer_cb;
- nft_ruleset_ctx_free;
-
- nft_batch_alloc;
- nft_batch_update;
- nft_batch_free;
- nft_batch_buffer;
- nft_batch_buffer_len;
- nft_batch_iovec_len;
- nft_batch_iovec;
-
- nft_set_attr_set_u64;
- nft_set_attr_get_u64;
- nft_set_elem_attr_set_u64;
- nft_set_elem_attr_get_u64;
-
-#
-# aliases
-#
-
nftnl_ruleset_ctx_is_set;
nftnl_ruleset_ctx_get;
nftnl_ruleset_ctx_get_u32;
@@ -506,5 +489,5 @@ LIBNFTNL_1.2.0 {
nftnl_batch_buffer_len;
nftnl_batch_iovec_len;
nftnl_batch_iovec;
-
-} LIBNFTNL_1.2;
+local: *;
+};
--
1.7.10.4
prev parent reply other threads:[~2015-09-16 13:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-16 13:06 [PATCH libnftnl 0/2] map fixes Pablo Neira Ayuso
2015-09-16 13:06 ` [PATCH libnftnl 1/2] src: move new set and set_elem symbols to new group Pablo Neira Ayuso
2015-09-16 13:06 ` Pablo Neira Ayuso [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1442408812-28799-3-git-send-email-pablo@netfilter.org \
--to=pablo@netfilter.org \
--cc=jengelh@inai.de \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).