From 8d076d09902fe618e69f3d71e42299bffe2af437 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Wed, 13 Apr 2011 14:05:18 +0530 Subject: format: Extend properties to handle lists/ranges This replaces the simple string used by pa_format_info's proplist with a JSON string (accessed via new API only). This allows us to express lists and ranges more cleanly, and embed type information for future extensibility. We use json-c for JSON parsing. This is a lightweight depdency (32 KB on my system) and avoids the hassle of having to reinvent a JSON parser. Also included is a test which verifies functionality and is valgrind-clean. --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 9edae0ec..9d388ef3 100644 --- a/configure.ac +++ b/configure.ac @@ -603,6 +603,12 @@ fi AC_CHECK_HEADERS_ONCE([valgrind/memcheck.h]) +#### json parsing #### + +PKG_CHECK_MODULES(LIBJSON, [ json >= 0.9 ]) +AC_SUBST(LIBJSON_CFLAGS) +AC_SUBST(LIBJSON_LIBS) + #### Sound file #### PKG_CHECK_MODULES(LIBSNDFILE, [ sndfile >= 1.0.20 ]) -- cgit