]> git.proxmox.com Git - mirror_iproute2.git/commit
json: move json printer to common library
authorDaniel Borkmann <daniel@iogearbox.net>
Thu, 21 Sep 2017 08:42:28 +0000 (10:42 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 22 Sep 2017 17:06:43 +0000 (10:06 -0700)
commit0b4b35e1e82dcb950e5972b93ff32f4a5380182e
tree762db9681c1764cec07e064d7b6a4f5dbe66db15
parent6335c5ff67202cf5b39eb929e2a0a5bb133627ba
json: move json printer to common library

Move the json printer which is based on json writer into the
iproute2 library, so it can be used by library code and tools
other than ip. Should probably have been done from the beginning
like that given json writer is in the library already anyway.
No functional changes.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Julien Fortin <julien@cumulusnetworks.com>
include/json_print.h [new file with mode: 0644]
ip/Makefile
ip/ip_common.h
ip/ip_print.c [deleted file]
lib/Makefile
lib/json_print.c [new file with mode: 0644]