diff options
author | Eduardo Chappa <chappa@washington.edu> | 2021-08-09 22:10:53 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2021-08-09 22:10:53 -0600 |
commit | 264838d76655e50d5bfda25425de4bfca044d839 (patch) | |
tree | f603966839bf10c9b00ae86d20d6450800791f5e /imap/src/c-client/json.h | |
parent | 8167f58e118afa658590253f8696c816511c3708 (diff) | |
download | alpine-264838d76655e50d5bfda25425de4bfca044d839.tar.xz |
* Update to json code to simplify it.
Diffstat (limited to 'imap/src/c-client/json.h')
-rw-r--r-- | imap/src/c-client/json.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/imap/src/c-client/json.h b/imap/src/c-client/json.h index 75a08c38..6060ed78 100644 --- a/imap/src/c-client/json.h +++ b/imap/src/c-client/json.h @@ -14,14 +14,10 @@ typedef enum {JValue, JString, JLong, JDecimal, JExponential, JNumberError, JObject, JArray, JBoolean, JNull, JEnd} JObjType; -typedef struct json_x { - JObjType jtype; - void *value; -} JSON_X; - typedef struct json_s { + JObjType jtype; unsigned char *name; - JSON_X *value; + void *value; struct json_s *next; } JSON_S; @@ -40,7 +36,7 @@ typedef struct json_s { void json_assign(void **, JSON_S *, char *, JObjType); JSON_S *json_by_name_and_type(JSON_S *, char *, JObjType); JSON_S *json_parse(unsigned char *); -JSON_X *json_body_value(JSON_S *, unsigned char *); +JSON_S *json_body_value(JSON_S *, unsigned char *); void json_free(JSON_S **); #endif /* JSON_H_INCLUDED */ |