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
15#include <stdbool.h>
16
18
49
50typedef struct PluginSettings
51{
53 GPtrArray * settings;
55
61PluginSetting * NONNULL
63
64PluginSetting * NONNULL
65plugin_setting_clone (const PluginSetting * src, bool validate);
66
67bool
68plugin_setting_is_equal (const PluginSetting * a, const PluginSetting * b);
69
79NONNULL void
80plugin_setting_validate (PluginSetting * self, bool print_result);
81
82NONNULL void
83plugin_setting_print (const PluginSetting * self);
84
91NONNULL void
93
100NONNULL void
102
106NONNULL void
108
109void
110plugin_setting_free_closure (void * self, GClosure * closure);
111
117
121NONNULL void
123
129NONNULL PluginSetting *
131
141NONNULL void
143 PluginSettings * self,
144 PluginSetting * setting,
145 bool _serialize);
146
147NONNULL void
148plugin_settings_free (PluginSettings * self);
149
154#endif
ZCarlaBridgeMode
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.
bool open_with_carla
Whether to instantiate this plugin with carla.
ZCarlaBridgeMode bridge_mode
Requested carla bridge mode.
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.