mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
format: Drop dependency on json-c
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 Signed-off-by: Arun Raghavan <arun@arunraghavan.net>
This commit is contained in:
parent
6741e5ae76
commit
c692ec3afd
6 changed files with 187 additions and 143 deletions
|
|
@ -19,6 +19,8 @@
|
|||
|
||||
#include <stdbool.h>
|
||||
|
||||
#define PA_DOUBLE_IS_EQUAL(x, y) (((x) - (y)) < 0.000001 && ((x) - (y)) > -0.000001)
|
||||
|
||||
typedef enum {
|
||||
PA_JSON_TYPE_INIT = 0,
|
||||
PA_JSON_TYPE_NULL,
|
||||
|
|
@ -47,3 +49,5 @@ const pa_json_object* pa_json_object_get_object_member(const pa_json_object *o,
|
|||
|
||||
int pa_json_object_get_array_length(const pa_json_object *o);
|
||||
const pa_json_object* pa_json_object_get_array_member(const pa_json_object *o, int index);
|
||||
|
||||
bool pa_json_object_equal(const pa_json_object *o1, const pa_json_object *o2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue