Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
stack.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2019-2021 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
9
10#ifndef __SCHEMAS_UTILS_STACK_H__
11#define __SCHEMAS_UTILS_STACK_H__
12
13#include <cstdlib>
14
15#include "utils/yaml.h"
16
17typedef struct Stack_v1
18{
19 int schema_version;
20 void ** elements;
21 int max_length;
22 gint top;
24
25static const cyaml_schema_field_t stack_fields_schema_v1[] = {
26 YAML_FIELD_INT (Stack_v1, schema_version),
27 YAML_FIELD_INT (Stack_v1, max_length),
28
29 CYAML_FIELD_END
30};
31
32static const cyaml_schema_value_t stack_schema = {
33 YAML_VALUE_PTR (Stack_v1, stack_fields_schema_v1),
34};
35
36#endif
YAML utils.