Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
port_connections_manager.h
1// SPDX-FileCopyrightText: © 2021 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
4#ifndef __SCHEMAS_AUDIO_PORT_CONNECTIONS_MANAGER_H__
5#define __SCHEMAS_AUDIO_PORT_CONNECTIONS_MANAGER_H__
6
7#include "gui/backend/backend/cyaml_schemas/dsp/port_connection.h"
8#include "utils/yaml.h"
9
11{
12 int schema_version;
13 PortConnection_v1 ** connections;
14 int num_connections;
15 size_t connections_size;
17
18static const cyaml_schema_field_t port_connections_manager_fields_schema_v1[] = {
19 YAML_FIELD_INT (PortConnectionsManager_v1, schema_version),
20 YAML_FIELD_DYN_PTR_ARRAY_VAR_COUNT_OPT (
22 connections,
23 port_connection_schema_v1),
24
25 CYAML_FIELD_END
26};
27
28static const cyaml_schema_value_t port_connections_manager_schema_v1 = {
29 YAML_VALUE_PTR (
31 port_connections_manager_fields_schema_v1),
32};
33#endif
YAML utils.