GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
include
utils
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
22
enum
gp_json_type
{
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
42
void
gp_json_err_handler
(
void
*print_priv,
const
char
*line);
43
44
typedef
struct
gp_json_reader
gp_json_reader
;
45
typedef
struct
gp_json_writer
gp_json_writer
;
46
47
#endif
/* GP_JSON_COMMON_H */
gp_json_type
gp_json_type
A JSON data type.
Definition
gp_json_common.h:22
gp_json_err_handler
void gp_json_err_handler(void *print_priv, const char *line)
default error print handler
gp_json_reader
A JSON parser internal state.
Definition
gp_json_reader.h:29
gp_json_writer
A JSON writer.
Definition
gp_json_writer.h:30
Generated by
1.9.8