/external/syslinux/com32/gpllib/zzjson/ |
zzjson_query.c | 2 * ZZJSON - Copyright (C) 2008 by Ivo van Poorten 6 #include "zzjson.h" 10 ZZJSON *zzjson_object_find_label(ZZJSON *zzjson, char *label) { 11 if (zzjson->type != ZZJSON_OBJECT) return NULL; 13 while (zzjson) { 14 char *string = zzjson->value.object.label; 16 if (zzjson->type != ZZJSON_OBJECT) return NULL; 20 return zzjson->value.object.val [all...] |
zzjson_free.c | 2 * ZZJSON - Copyright (C) 2008 by Ivo van Poorten 6 #include "zzjson.h" 8 void zzjson_free(ZZJSON_CONFIG *config, ZZJSON *zzjson) { 9 while (zzjson) { 10 ZZJSON *next; 11 switch(zzjson->type) { 13 config->free(zzjson->value.object.label); 14 zzjson_free(config, zzjson->value.object.val); 17 zzjson_free(config, zzjson->value.array.val) [all...] |
zzjson_create.c | 1 /* JSON Create ZZJSON structures 2 * ZZJSON - Copyright (C) 2008 by Ivo van Poorten 6 #include "zzjson.h" 18 static ZZJSON *zzjson_create_templ(ZZJSON_CONFIG *config, ZZJSON_TYPE type) { 19 ZZJSON *zzjson = config->calloc(1, sizeof(ZZJSON)); local 20 if (!zzjson) MEMERROR(); 21 else zzjson->type = type; 22 return zzjson; 38 ZZJSON *zzjson = zzjson_create_templ(config, ZZJSON_NUMBER_DOUBLE); local 45 ZZJSON *zzjson = zzjson_create_templ(config, ZZJSON_NUMBER_NEGINT); local 64 ZZJSON *zzjson = NULL; local 78 ZZJSON *zzjson, *retval, *val; local 109 ZZJSON *zzjson, *retval, *val; local 154 ZZJSON *zzjson; local 171 ZZJSON *retval = array, *zzjson; local 191 ZZJSON *zzjson = NULL; local 215 ZZJSON *retval = object, *zzjson = NULL; local [all...] |
zzjson_print.c | 2 * ZZJSON - Copyright (C) 2008 by Ivo van Poorten 6 #include "zzjson.h" 37 static int zzjson_print2(ZZJSON_CONFIG *config, ZZJSON *zzjson, 40 if (!zzjson) return -1; 42 switch(zzjson->type) { 50 while (zzjson) { 51 switch(zzjson->type) { 53 if (zzjson->value.object.val) { 55 if (print_string(config, zzjson->value.object.label) < 0 [all...] |
zzjson_parse.c | 2 * ZZJSON - Copyright (C) 2008-2009 by Ivo van Poorten 6 #include "zzjson.h" 28 static ZZJSON *parse_array(ZZJSON_CONFIG *config); 29 static ZZJSON *parse_object(ZZJSON_CONFIG *config); 123 static ZZJSON *parse_string2(ZZJSON_CONFIG *config) { 124 ZZJSON *zzjson = NULL; local 129 zzjson = config->calloc(1, sizeof(ZZJSON)); 130 if (!zzjson) { 142 ZZJSON *zzjson; local 243 ZZJSON *zzjson; local 309 ZZJSON *zzjson = NULL, *val = NULL; local 388 ZZJSON *zzjson = NULL, *val = NULL; local [all...] |
/external/syslinux/com32/gplinclude/zzjson/ |
zzjson.h | 0 /* ZZJSON - Copyright (C) 2008 by Ivo van Poorten 15 #define ZZJSON_IDENT "zzjson 1.1.0" 60 typedef struct ZZJSON { 65 struct ZZJSON *val; 68 struct ZZJSON *val; 80 struct ZZJSON *next; 81 } ZZJSON; 85 ZZJSON *zzjson_parse(ZZJSON_CONFIG *config); 86 void zzjson_free(ZZJSON_CONFIG *config, ZZJSON *zzjson); [all...] |
/external/syslinux/com32/gpllib/ |
Makefile | 8 REQFLAGS += -I$(SRC)/../gplinclude -I$(SRC)/../gplinclude/zzjson 10 GPLDIRS := $(SRC) $(addprefix $(SRC)/,disk dmi vpd acpi zzjson)
|
/external/syslinux/com32/modules/ |
zzjson.c | 9 #include <zzjson/zzjson.h> 33 ZZJSON *tmp; 43 ZZJSON *tmp2;
|
Makefile | 25 ifcpu.c32 cpuid.c32 cat.c32 pwd.c32 ifplop.c32 zzjson.c32 \
|
/external/syslinux/com32/hdt/ |
hdt-dump.h | 34 #include <zzjson/zzjson.h> 38 #define APPEND_ARRAY ZZJSON *temp_array; temp_array = zzjson_array_append(config, *item, zzjson_create_object(config, 39 #define APPEND_OBJECT_ARRAY(value) ZZJSON *temp_ar; temp_ar = zzjson_array_append(config, *item, value); *item=temp_ar; 68 void print_and_flush(ZZJSON_CONFIG *config, ZZJSON **item); 70 void flush (ZZJSON_CONFIG *config, ZZJSON ** item); 73 void dump_cpu(struct s_hardware *hardware, ZZJSON_CONFIG *config, ZZJSON **item); 74 void dump_pxe(struct s_hardware *hardware, ZZJSON_CONFIG *config, ZZJSON **item); 75 void dump_syslinux(struct s_hardware *hardware, ZZJSON_CONFIG *config, ZZJSON **item); 76 void dump_vpd(struct s_hardware *hardware, ZZJSON_CONFIG *config, ZZJSON **item) [all...] |