Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
plugin_settings.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2021-2022 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
10#ifndef __SETTINGS_PLUGIN_SETTINGS_H__
11#define __SETTINGS_PLUGIN_SETTINGS_H__
12
13#include "zrythm-config.h"
14
16
47
48typedef struct PluginSettings
49{
51 GPtrArray * settings;
53
59PluginSetting * NONNULL
61
62PluginSetting * NONNULL
63plugin_setting_clone (const PluginSetting * src, bool validate);
64
65bool
66plugin_setting_is_equal (const PluginSetting * a, const PluginSetting * b);
67
77NONNULL void
78plugin_setting_validate (PluginSetting * self, bool print_result);
79
80NONNULL void
81plugin_setting_print (const PluginSetting * self);
82
89NONNULL void
91
98NONNULL void
100
104NONNULL void
106
107void
108plugin_setting_free_closure (void * self, GClosure * closure);
109
115
119NONNULL void
121
127NONNULL PluginSetting *
129
139NONNULL void
141 PluginSettings * self,
142 PluginSetting * setting,
143 bool _serialize);
144
145NONNULL void
146plugin_settings_free (PluginSettings * self);
147
152#endif
CarlaBridgeMode
Carla bridge mode.
NONNULL PluginSetting * plugin_settings_find(PluginSettings *self, const PluginDescriptor *descr)
Finds a setting for the given plugin descriptor.
NONNULL void plugin_setting_validate(PluginSetting *self, bool print_result)
Makes sure the setting is valid in the current run and changes any fields to make it conform.
NONNULL void plugin_setting_increment_num_instantiations(PluginSetting *self)
Increments the number of times this plugin has been instantiated.
NONNULL void plugin_setting_activate(const PluginSetting *self)
Creates necessary tracks at the end of the tracklist.
PluginSetting *NONNULL plugin_setting_new_default(const PluginDescriptor *descr)
Creates a plugin setting with the recommended settings for the given plugin descriptor based on the c...
NONNULL void plugin_settings_serialize_to_file(PluginSettings *self)
Serializes the current settings.
NONNULL void plugin_setting_free(PluginSetting *self)
Frees the plugin setting.
PluginSettings * plugin_settings_read_or_new(void)
Reads the file and fills up the object.
NONNULL void plugin_settings_set(PluginSettings *self, PluginSetting *setting, bool _serialize)
Replaces a setting or appends a setting to the cache.
A setting for a specific plugin descriptor.
CarlaBridgeMode bridge_mode
Requested carla bridge mode.
bool open_with_carla
Whether to instantiate this plugin with carla.
bool force_generic_ui
Whether to force a generic UI.
int num_instantiations
Number of times this plugin has been instantiated.
gint64 last_instantiated_time
Last datetime instantiated (number of microseconds since January 1, 1970 UTC).
PluginDescriptor * descr
The descriptor of the plugin this setting is for.
GPtrArray * settings
Settings.