GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_json_common.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later
2/*
3 * Copyright (C) 2021-2022 Cyril Hrubis <metan@ucw.cz>
4 */
5
11#ifndef GP_JSON_COMMON_H
12#define GP_JSON_COMMON_H
13
14#define GP_JSON_ERR_MAX 128
15#define GP_JSON_ID_MAX 64
16
17#define GP_JSON_RECURSION_MAX 128
18
23 GP_JSON_VOID = 0,
24 GP_JSON_INT,
25 GP_JSON_FLOAT,
26 GP_JSON_BOOL,
27 GP_JSON_NULL,
28 GP_JSON_STR,
29 GP_JSON_OBJ,
30 GP_JSON_ARR,
31};
32
33#define GP_JSON_ERR_PRINT gp_json_err_handler
34#define GP_JSON_ERR_PRINT_PRIV stderr
35
42void gp_json_err_handler(void *print_priv, const char *line);
43
44typedef struct gp_json_reader gp_json_reader;
45typedef struct gp_json_writer gp_json_writer;
46
47#endif /* GP_JSON_COMMON_H */
gp_json_type
A JSON data type.
void gp_json_err_handler(void *print_priv, const char *line)
default error print handler
A JSON parser internal state.
A JSON writer.