Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
chord_selections.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: © 2019, 2021 Alexandros Theodotou <alex@zrythm.org>
3 *
4 * SPDX-License-Identifier: LicenseRef-ZrythmLicense
5 */
6
12
13#ifndef __SCHEMAS_GUI_BACKEND_CHORD_SELECTIONS_H__
14#define __SCHEMAS_GUI_BACKEND_CHORD_SELECTIONS_H__
15
18#include "utils/yaml.h"
19
20typedef struct ChordSelections_v1
21{
23 int schema_version;
24 ChordObject_v1 ** chord_objects;
25 int num_chord_objects;
26 size_t chord_objects_size;
28
29static const cyaml_schema_field_t chord_selections_fields_schema_v1[] = {
30 YAML_FIELD_MAPPING_EMBEDDED (
32 base,
33 arranger_selections_fields_schema_v1),
34 YAML_FIELD_INT (ChordSelections_v1, schema_version),
35 YAML_FIELD_DYN_ARRAY_VAR_COUNT (
37 chord_objects,
38 chord_object_schema_v1),
39
40 CYAML_FIELD_END
41};
42
43static const cyaml_schema_value_t chord_selections_schema_v1 = {
44 YAML_VALUE_PTR (ChordSelections_v1, chord_selections_fields_schema_v1),
45};
46
47#endif
ArrangerSelections schema.
Chord object schema.
YAML utils.