Loading...
Searching...
No Matches
result_output_types.h
1/*
2 * SPDX-FileCopyrightText: 2021 HAW Hamburg
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12#ifndef CONFIG_TURO_MAX_NESTING_LEVELS
13#define CONFIG_TURO_MAX_NESTING_LEVELS 32
14#endif
15
20typedef enum {
21 TURO_STATE_UNKNOWN,
22 TURO_STATE_READY,
23 TURO_STATE_CONTAINER,
24 TURO_STATE_DICT_OPENED,
25 TURO_STATE_ARRAY_OPENED
26} turo_state_t;
28
33struct turo {
34 size_t idx;
35 turo_state_t states[CONFIG_TURO_MAX_NESTING_LEVELS];
36};
37
38#ifdef __cplusplus
39}
40#endif
turo type
turo_state_t states[CONFIG_TURO_MAX_NESTING_LEVELS]
state buffer
size_t idx
index for states