]> git.ipfire.org Git - thirdparty/lldpd.git/commit
client: built-in JSON support
authorVincent Bernat <vincent@bernat.im>
Mon, 23 Jan 2017 16:28:33 +0000 (17:28 +0100)
committerVincent Bernat <vincent@bernat.im>
Sun, 29 Jan 2017 08:23:58 +0000 (09:23 +0100)
commit06987a24ce053cbb57f8853bbf544bc7c067c8aa
tree950e95170e3a6498648877c6091f2b6a7aa51d08
parenta254e9234d22f929558c7a60711641c149262376
client: built-in JSON support

Instead of relying on two different libs to serialize JSON, we provide
our own built-in serializer. This reduces the amount of build-related
code (detection of the correct library), as well as the amount of C code
with the exception of UTF-8 handling which was stolen from CCAN.

This will also make the life of some users easier.

The JSON format stays the same: quite verbose with --enable-json0
flag. And inconsistent without it.

Fix #188.
Fix #220.
19 files changed:
.travis.yml
NEWS
README.md
configure.ac
debian/control
debian/copyright
debian/rules
m4/jansson.m4 [deleted file]
m4/json-c.m4 [deleted file]
redhat/lldpd.spec
src/client/Makefile.am
src/client/jansson_writer.c [deleted file]
src/client/json_writer.c [new file with mode: 0644]
src/client/jsonc_writer.c [deleted file]
src/client/lldpcli.c
src/client/utf8.c [new file with mode: 0644]
src/client/writer.h
src/version.c
tests/ci/install.sh