Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
automation_selections.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_GUI_BACKEND_AUTOMATION_SELECTIONS_H__
11#define __SCHEMAS_GUI_BACKEND_AUTOMATION_SELECTIONS_H__
12
13#include "utils/yaml.h"
14
16{
18 int schema_version;
19 AutomationPoint_v1 ** automation_points;
20 int num_automation_points;
21 size_t automation_points_size;
23
24static const cyaml_schema_field_t automation_selections_fields_schema_v1[] = {
25 YAML_FIELD_INT (AutomationSelections_v1, schema_version),
26 YAML_FIELD_MAPPING_EMBEDDED (
28 base,
29 arranger_selections_fields_schema_v1),
30 CYAML_FIELD_SEQUENCE_COUNT (
31 "automation_points",
32 CYAML_FLAG_POINTER | CYAML_FLAG_OPTIONAL,
34 automation_points,
35 num_automation_points,
36 &automation_point_schema_v1,
37 0,
38 CYAML_UNLIMITED),
39
40 CYAML_FIELD_END
41};
42
43static const cyaml_schema_value_t automation_selections_schema_v1 = {
44 CYAML_VALUE_MAPPING (
45 CYAML_FLAG_POINTER,
47 automation_selections_fields_schema_v1),
48};
49
50#endif
YAML utils.