]> git.ipfire.org Git - thirdparty/nftables.git/commit
JSON: Add metainfo object to all output
authorPhil Sutter <phil@nwl.cc>
Wed, 29 Aug 2018 14:23:28 +0000 (16:23 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 30 Aug 2018 10:19:36 +0000 (12:19 +0200)
commit49e0f1dc6e52e791f5e0ba21097aea17d5950d38
tree00215046781f409c62974cd57bf75f96ad265a51
parent90d4ee087171e75d5313359ad6b6f1341e51ddc5
JSON: Add metainfo object to all output

Right now this object merely contains the nftables version and release
name as well as a JSON schema version, but it could be extended
arbitrarily. In the future, this will also allow for non-compatible
schema changes should the need for this arise.

Adjust the parser to accept metainfo objects and make it verify
json_schema_version to be less than or equal to the one hard-coded in
the library.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
doc/libnftables-json.adoc
include/json.h
src/json.c
src/parser_json.c