12#ifndef __PLUGINS_PLUGIN_IDENTIFIER_H__
13#define __PLUGINS_PLUGIN_IDENTIFIER_H__
15#include "zrythm-config.h"
27#define PLUGIN_IDENTIFIER_SCHEMA_VERSION 1
34 PLUGIN_SLOT_INSTRUMENT,
40static const cyaml_strval_t plugin_slot_type_strings[] = {
41 {
"Invalid", PLUGIN_SLOT_INVALID },
42 {
"Insert", PLUGIN_SLOT_INSERT },
43 {
"MIDI FX", PLUGIN_SLOT_MIDI_FX },
44 {
"Instrument", PLUGIN_SLOT_INSTRUMENT},
48static inline const char *
51 return plugin_slot_type_strings[type].str;
76static const cyaml_schema_field_t plugin_identifier_fields_schema[] = {
85static const cyaml_schema_value_t plugin_identifier_schema = {
89 plugin_identifier_fields_schema),
96plugin_identifier_is_equal (
100 return a->slot_type == b->slot_type
123plugin_identifier_get_hash (
const void *
id);
bool plugin_identifier_validate_slot_type_slot_combo(PluginSlotType slot_type, int slot)
Verifies that slot_type and slot is a valid combination.
@ PLUGIN_SLOT_MODULATOR
Plugin is part of a modulator.
int slot
The slot this plugin is in the channel, or the index if this is part of a modulator.
unsigned int track_name_hash
Track name hash.