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#pragma once
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15#ifndef CONFIG_TURO_MAX_NESTING_LEVELS
16#define CONFIG_TURO_MAX_NESTING_LEVELS 32
17#endif
18
23typedef enum {
24 TURO_STATE_UNKNOWN,
25 TURO_STATE_READY,
26 TURO_STATE_CONTAINER,
27 TURO_STATE_DICT_OPENED,
28 TURO_STATE_ARRAY_OPENED
29} turo_state_t;
31
36struct turo {
37 size_t idx;
38 turo_state_t states[CONFIG_TURO_MAX_NESTING_LEVELS];
39};
40
41#ifdef __cplusplus
42}
43#endif
turo type
turo_state_t states[CONFIG_TURO_MAX_NESTING_LEVELS]
state buffer
size_t idx
index for states