]> xenbits.xensource.com Git - libvirt.git/commit
nss: custom parser for loading .macs file
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 31 Jul 2019 09:40:39 +0000 (10:40 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 7 Aug 2019 15:54:02 +0000 (16:54 +0100)
commit904d60b06c386c4bf98d89db0d39bdadac1a5144
tree159ab8fefe36003867b9137ae5d1453fb3f5f8da
parentf5b5d9870087922aa9b06dd6caa35afb532d4e92
nss: custom parser for loading .macs file

The .macs file is currently loaded using the virMacMap class,
which in turn uses the virJSON parsing code. This pulls in a
heap of libvirt code (logging, hash tables, objects, etc) which
we do not wish to depend on.

This uses the yajl parser code directly, so the only dep is
yajl and plain libc functions.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
cfg.mk
tools/Makefile.am
tools/nss/libvirt_nss.c
tools/nss/libvirt_nss.h
tools/nss/libvirt_nss_macs.c [new file with mode: 0644]
tools/nss/libvirt_nss_macs.h [new file with mode: 0644]