| Top |
| struct | AgsLv2OptionRessource |
| #define | AGS_TYPE_LV2_OPTION_MANAGER |
| struct | AgsLv2OptionManager |
| struct | AgsLv2OptionManagerClass |
The AgsLv2OptionManager gives you access to plugin instances global configuration. And stores instance related ressources.
pthread_mutex_t *
ags_lv2_option_manager_get_class_mutex
();
Get class mutex.
Since: 2.0.0
AgsLv2OptionRessource * ags_lv2_option_ressource_alloc ();
Allocate an AgsLv2OptionRessource.
Since: 2.0.0
gboolean ags_lv2_option_manager_ressource_insert (AgsLv2OptionManager *lv2_option_manager,AgsLv2OptionRessource *lv2_option_ressource,gpointer data);
Inserts a data into hash associated with lv2_option_ressource
.
Since: 2.0.0
gboolean ags_lv2_option_manager_ressource_remove (AgsLv2OptionManager *lv2_option_manager,AgsLv2OptionRessource *lv2_option_ressource);
Removes an entry associated with lv2_option_ressource
.
Since: 2.0.0
gpointer ags_lv2_option_manager_ressource_lookup (AgsLv2OptionManager *lv2_option_manager,AgsLv2OptionRessource *lv2_option_ressource);
Lookup a ressource associated with lv2_option_ressource
in
lv2_option_manager
.
Since: 2.0.0
gboolean ags_lv2_option_manager_ressource_lookup_extended (AgsLv2OptionManager *lv2_option_manager,AgsLv2OptionRessource *lv2_option_ressource,gpointer *orig_key,gpointer *value);
Lookup a ressource associated with lv2_option_ressource
in
lv2_option_manager
.
lv2_option_manager |
||
lv2_option_ressource |
the AgsLv2OptionRessource to lookup |
|
orig_key |
the original key found |
|
value |
the matched value |
Since: 2.0.0
void ags_lv2_option_manager_get_option (AgsLv2OptionManager *lv2_option_manager,gpointer instance,gpointer option,gpointer retval);
Get option.
lv2_option_manager |
||
instance |
the instance |
|
option |
the option |
|
retval |
return value for LV2_Options_Status |
Since: 2.0.0
void ags_lv2_option_manager_set_option (AgsLv2OptionManager *lv2_option_manager,gpointer instance,gpointer option,gpointer retval);
Set option.
lv2_option_manager |
||
instance |
the instance |
|
option |
the option |
|
retval |
return value for LV2_Options_Status |
Since: 2.0.0
uint32_t ags_lv2_option_manager_lv2_options_get (LV2_Handle instance,LV2_Options_Option *options);
The LV2 options interface's get method.
Since: 2.0.0
uint32_t ags_lv2_option_manager_lv2_options_set (LV2_Handle instance,LV2_Options_Option *options);
The LV2 options interface's set method.
Since: 2.0.0
AgsLv2OptionManager * ags_lv2_option_manager_get_instance ();
Singleton function to optain the id manager instance.
Since: 2.0.0
AgsLv2OptionManager * ags_lv2_option_manager_new ();
Instantiate a id manager.
Since: 2.0.0
#define AGS_IS_LV2_OPTION_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_LV2_OPTION_MANAGER))
#define AGS_LV2_OPTION_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_LV2_OPTION_MANAGER, AgsLv2OptionManager))
#define AGS_LV2_OPTION_MANAGER_CLASS(class) (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_LV2_OPTION_MANAGER, AgsLv2OptionManagerClass))
#define AGS_LV2_OPTION_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_LV2_OPTION_MANAGER, AgsLv2OptionManagerClass))
struct AgsLv2OptionRessource {
LV2_Handle instance;
LV2_Options_Option *option;
};
struct AgsLv2OptionManagerClass {
GObjectClass gobject;
void (*get_option)(AgsLv2OptionManager *option_manager,
gpointer instance,
gpointer option,
gpointer retval);
void (*set_option)(AgsLv2OptionManager *option_manager,
gpointer instance,
gpointer option,
gpointer retval);
};
“get-option” signalvoid user_function (AgsLv2OptionManager *option_manager, gpointer intstance, gpointer option, gpointer retval, gpointer user_data)
The ::get-option signal gets options of the manager.
option_manager |
the plugin to instantiate |
|
intstance |
the LV2 plugin instance |
|
option |
the LV2 option pointer |
|
retval |
the location of the return value |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 2.0.0
“set-option” signalvoid user_function (AgsLv2OptionManager *option_manager, gpointer intstance, gpointer option, gpointer retval, gpointer user_data)
The ::set-option signal sets options for the manager.
option_manager |
the plugin to instantiate |
|
intstance |
the LV2 plugin instance |
|
option |
the LV2 option pointer |
|
retval |
the location of the return value |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 2.0.0