format: Drop dependency on json-c

System Internals / PulseAudio - Arun Raghavan [arunraghavan.net] - 22 June 2016 10:34 UTC

json-c has a symbol clash (json_object_get_type) with json-glib (which at least a number of our GNOME clients use). This patch moves to our own JSON parser so that we can avoid this kind of situation altogether.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=95135

c692ec3 format: Drop dependency on json-c
configure.ac | 4 -
src/Makefile.am | 8 +-
src/pulse/format.c | 226 ++++++++++++++++++++++++-------------------------
src/pulse/json.c | 80 ++++++++++++++---
src/pulse/json.h | 4 +
src/tests/json-test.c | 8 +-
6 files changed, 187 insertions(+), 143 deletions(-)

Upstream: cgit.freedesktop.org


  • Share