10#ifndef __PLUGINS_PLUGIN_PRESET_H__
11#define __PLUGINS_PLUGIN_PRESET_H__
22#define PLUGIN_BANK_SCHEMA_VERSION 1
23#define PLUGIN_PRESET_IDENTIFIER_SCHEMA_VERSION 1
24#define PLUGIN_PRESET_SCHEMA_VERSION 1
44static const cyaml_schema_field_t plugin_preset_identifier_fields_schema[] = {
51 plugin_identifier_fields_schema),
56static const cyaml_schema_value_t plugin_preset_identifier_schema = {
79static const cyaml_schema_field_t plugin_preset_fields_schema[] = {
87 plugin_preset_identifier_fields_schema),
92static const cyaml_schema_value_t plugin_preset_schema = {
120static const cyaml_schema_field_t plugin_bank_fields_schema[] = {
124 YAML_FIELD_STRING_PTR_OPTIONAL (
PluginBank, uri),
128 plugin_preset_identifier_fields_schema),
133static const cyaml_schema_value_t plugin_bank_schema = {
138plugin_bank_new (
void);
141plugin_preset_new (
void);
#define YAML_FIELD_MAPPING_EMBEDDED(owner, member, schema)
Mapping embedded inside the struct.
#define YAML_VALUE_PTR(cc, fields_schema)
Schema to be used as a pointer.
#define YAML_FIELD_DYN_PTR_ARRAY_VAR_COUNT_OPT(owner, member, schema)
Dynamic-width (reallocated) array of pointers with variable count, nullable.
A plugin bank containing presets.
char * name
Human readable name.
PluginPreset ** presets
Presets in this bank.
int idx
Index in bank, or -1 if this is used for a bank.
PluginIdentifier plugin_id
Plugin identifier.
int bank_idx
Bank index in plugin.
char * name
Human readable name.
int carla_program
Carla program index.