diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-07-26 15:56:37 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-07-26 16:15:51 +0200 |
commit | 2d16da839c46428c546d3ff372d919236920ead1 (patch) | |
tree | fd92c20dae6f07eb6f62493f15cda3dc5d44f899 /src/internal.h | |
parent | 44928cd546f00a73797a570dcaee44f0bfe5bea7 (diff) |
src: remove version from XML and JSON representations
This patch removes the version XML node and the version JSON field
in all our existing objects. The current versioning approach
consists of adding a version field to every object representation
in XML and JSON. While listing my entire rule-set, one can notice
that this approach is too bloated.
Once the library enters stable stage, if we need to obsolete a XML
node and a JSON field, we can follow this procedure:
1) Remove the XML node and the JSON field from the output, so fresh
outputs will not contain the old ones anymore.
2) Do not remove the parsing of the old XML node and the JSON field
inmediately. We have to keep supporting the parsing for a while
to avoid breaking the interpretion of old XML/JSON files. We can
spot a warning to warn about it, so users generate a fresh
output again.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/internal.h')
-rw-r--r-- | src/internal.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/internal.h b/src/internal.h index 1970c9c..a8ae431 100644 --- a/src/internal.h +++ b/src/internal.h @@ -47,15 +47,6 @@ const char *nft_jansson_value_parse_str(json_t *root, const char *tag); bool nft_jansson_node_exist(json_t *root, const char *tag); #endif -#define NFT_TABLE_XML_VERSION 0 -#define NFT_CHAIN_XML_VERSION 0 -#define NFT_RULE_XML_VERSION 0 -#define NFT_SET_XML_VERSION 0 -#define NFT_TABLE_JSON_VERSION 0 -#define NFT_CHAIN_JSON_VERSION 0 -#define NFT_RULE_JSON_VERSION 0 -#define NFT_SET_JSON_VERSION 0 - const char *nft_family2str(uint32_t family); int nft_str2family(const char *family); int nft_strtoi(const char *string, int base, void *number, enum nft_type type); |