gwenhywfar 5.11.2beta
json.h
Go to the documentation of this file.
1/***************************************************************************
2 copyright : (C) 2023 by Martin Preuss
3 email : martin@libchipcard.de
4
5 ***************************************************************************
6 * *
7 * This library is free software; you can redistribute it and/or *
8 * modify it under the terms of the GNU Lesser General Public *
9 * License as published by the Free Software Foundation; either *
10 * version 2.1 of the License, or (at your option) any later version. *
11 * *
12 * This library is distributed in the hope that it will be useful, *
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
15 * Lesser General Public License for more details. *
16 * *
17 * You should have received a copy of the GNU Lesser General Public *
18 * License along with this library; if not, write to the Free Software *
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, *
20 * MA 02111-1307 USA *
21 * *
22 ***************************************************************************/
23
24
25#ifndef GWENHYWFAR_JSON_H
26#define GWENHYWFAR_JSON_H
27
28
29#include <gwenhywfar/tree2.h>
30
31
32
35
36
37enum {
46};
47
48
49
52
55
58
61
63
64
65#endif
66
#define GWENHYWFAR_API
Definition: gwenhywfarapi.h:67
GWENHYWFAR_API GWEN_JSON_ELEM * GWEN_JsonElement_FindNextByTypeAndData(const GWEN_JSON_ELEM *je, int t, const char *s)
GWENHYWFAR_API GWEN_JSON_ELEM * GWEN_JsonElement_new(int t, const char *sData)
GWENHYWFAR_API const char * GWEN_JsonElement_GetData(const GWEN_JSON_ELEM *je)
GWENHYWFAR_API GWEN_JSON_ELEM * GWEN_JsonElement_FindFirstByTypeAndData(const GWEN_JSON_ELEM *je, int t, const char *s)
GWENHYWFAR_API void GWEN_JsonElement_SetData(GWEN_JSON_ELEM *je, const char *s)
GWENHYWFAR_API int GWEN_JsonElement_GetType(const GWEN_JSON_ELEM *je)
GWENHYWFAR_API void GWEN_JsonElement_free(GWEN_JSON_ELEM *je)
GWENHYWFAR_API void GWEN_JsonElement_SetType(GWEN_JSON_ELEM *je, int t)
GWEN_TREE2_FUNCTION_LIB_DEFS(GWEN_JSON_ELEM, GWEN_JsonElement, GWENHYWFAR_API)
struct GWEN_JSON_ELEM GWEN_JSON_ELEM
Definition: json.h:33
@ GWEN_JSON_ELEMTYPE_OBJECT
Definition: json.h:45
@ GWEN_JSON_ELEMTYPE_STRING
Definition: json.h:43
@ GWEN_JSON_ELEMTYPE_BOOL
Definition: json.h:41
@ GWEN_JSON_ELEMTYPE_NULL
Definition: json.h:40
@ GWEN_JSON_ELEMTYPE_KEY
Definition: json.h:39
@ GWEN_JSON_ELEMTYPE_ARRAY
Definition: json.h:44
@ GWEN_JSON_ELEMTYPE_UNKNOWN
Definition: json.h:38
@ GWEN_JSON_ELEMTYPE_NUM
Definition: json.h:42
GWENHYWFAR_API GWEN_JSON_ELEM * GWEN_JsonElement_GetElementByPath(GWEN_JSON_ELEM *je, const char *path, uint32_t flags)