diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-03-26 21:39:29 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-03-27 11:26:33 +0200 |
commit | 9d5d2b85c2f37b0f734d6a1a4b3ea2e36ead6519 (patch) | |
tree | f5c46ac8e3b68a65f8e754a665ca03354fe92687 /src/libnetfilter_acct.map | |
parent | ad96d6dd747cfc45116e4e600a3d22079e18a657 (diff) |
nfacct: change prototype of nfacct_snprintf() to support output in XML
This patch adds supports for XML output for nfacct_snprintf().
This also bumps the library current version number and it adds
a new version in the symbol map. I decided to do so because,
although no official release has happened so far. Many distributors
have already decided to provide packages for this.
We don't provide the old symbol version for nfacct_snprintf,
I think that's too much (given the lifetime of it). But we make
sure that we break the binary gracefully in case of version
mismatches (not silently, with unexpectable side effects).
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/libnetfilter_acct.map')
-rw-r--r-- | src/libnetfilter_acct.map | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/libnetfilter_acct.map b/src/libnetfilter_acct.map index 2a56eba..e71a6b3 100644 --- a/src/libnetfilter_acct.map +++ b/src/libnetfilter_acct.map @@ -12,11 +12,13 @@ global: nfacct_nlmsg_build_hdr; nfacct_nlmsg_build_payload; nfacct_nlmsg_parse_payload; - nfacct_snprintf; + /* nfacct_snprintf prototype was modified, new version in 1.1. + I decided not to keep the old symbol compatibility. See git log + for more information. */ local: *; }; -#LIBNETFILTER_ACCT_1.1 { -# _my_new_func; -#} LIBNETFILTER_ACCT_1.0; +LIBNETFILTER_ACCT_1.1 { + nfacct_snprintf; +} LIBNETFILTER_ACCT_1.0; |