Loading...
Searching...
No Matches
result_output_types.h
1/*
2 * Copyright (C) 2021 HAW Hamburg
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
9#ifndef RESULT_OUTPUT_TYPES_H
10#define RESULT_OUTPUT_TYPES_H
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16#ifndef CONFIG_TURO_MAX_NESTING_LEVELS
17#define CONFIG_TURO_MAX_NESTING_LEVELS 32
18#endif
19
24typedef enum {
25 TURO_STATE_UNKNOWN,
26 TURO_STATE_READY,
27 TURO_STATE_CONTAINER,
28 TURO_STATE_DICT_OPENED,
29 TURO_STATE_ARRAY_OPENED
30} turo_state_t;
37struct turo {
38 size_t idx;
39 turo_state_t states[CONFIG_TURO_MAX_NESTING_LEVELS];
40};
41
42#ifdef __cplusplus
43}
44#endif
45#endif /* RESULT_OUTPUT_TYPES_H */
turo type
turo_state_t states[CONFIG_TURO_MAX_NESTING_LEVELS]
state buffer
size_t idx
index for states