X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Flib%2Fgscpaux%2Fjson.h;fp=src%2Flib%2Fgscpaux%2Fjson.h;h=b8bed06ef1f1c4ece5262f7d04f15babc7fac2ab;hb=e981e864b812c938d3df8b555b6bb98bb89273e7;hp=740c0b24815e9f47623184ab6ba6390f5b3a8870;hpb=44ea17511358ebc75952066580e31cba8b38ddb8;p=com%2Fgs-lite.git diff --git a/src/lib/gscpaux/json.h b/src/lib/gscpaux/json.h index 740c0b2..b8bed06 100644 --- a/src/lib/gscpaux/json.h +++ b/src/lib/gscpaux/json.h @@ -1,39 +1,39 @@ -// Distributed under the MIT license. Copyright (c) 2010, Ivan Vashchaev - -#ifndef JSON_H -#define JSON_H - -#include "block_allocator.h" - -enum json_type -{ - JSON_NULL, - JSON_OBJECT, - JSON_ARRAY, - JSON_STRING, - JSON_INT, - JSON_FLOAT, - JSON_BOOL, -}; - -struct json_value -{ - json_value *parent; - json_value *next_sibling; - json_value *first_child; - json_value *last_child; - - char *name; - union - { - char *string_value; - int int_value; - float float_value; - }; - - json_type type; -}; - -json_value *json_parse(char *source, char **error_pos, const char **error_desc, int *error_line, block_allocator *allocator); - -#endif +// Distributed under the MIT license. Copyright (c) 2010, Ivan Vashchaev + +#ifndef JSON_H +#define JSON_H + +#include "block_allocator.h" + +enum json_type +{ + JSON_NULL, + JSON_OBJECT, + JSON_ARRAY, + JSON_STRING, + JSON_INT, + JSON_FLOAT, + JSON_BOOL, +}; + +struct json_value +{ + json_value *parent; + json_value *next_sibling; + json_value *first_child; + json_value *last_child; + + char *name; + union + { + char *string_value; + int int_value; + float float_value; + }; + + json_type type; +}; + +json_value *json_parse(char *source, char **error_pos, const char **error_desc, int *error_line, block_allocator *allocator); + +#endif