diff options
author | David Robillard <d@drobilla.net> | 2007-09-22 19:43:11 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-09-22 19:43:11 +0000 |
commit | 996f9015fe055ca63823110175593317ac20c80f (patch) | |
tree | 526d4bb1c4dd2ed8c5a05dcacabe78e1d000bd22 /slv2 | |
parent | 106b0784b8c8347bbbebcedc421030effdc26fd0 (diff) | |
download | lilv-996f9015fe055ca63823110175593317ac20c80f.tar.gz lilv-996f9015fe055ca63823110175593317ac20c80f.tar.bz2 lilv-996f9015fe055ca63823110175593317ac20c80f.zip |
LV2 UI extension updates.
LV2 GUI support in ingen.
git-svn-id: http://svn.drobilla.net/lad/slv2@763 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'slv2')
-rw-r--r-- | slv2/Makefile.am | 4 | ||||
-rw-r--r-- | slv2/plugin.h | 20 | ||||
-rw-r--r-- | slv2/pluginuiinstance.h (renamed from slv2/pluginguiinstance.h) | 68 | ||||
-rw-r--r-- | slv2/slv2.h | 4 | ||||
-rw-r--r-- | slv2/types.h | 12 | ||||
-rw-r--r-- | slv2/ui.h (renamed from slv2/gui.h) | 6 | ||||
-rw-r--r-- | slv2/value.h | 16 |
7 files changed, 65 insertions, 65 deletions
diff --git a/slv2/Makefile.am b/slv2/Makefile.am index 8deb4db..9c0aa21 100644 --- a/slv2/Makefile.am +++ b/slv2/Makefile.am @@ -1,13 +1,13 @@ slv2includedir = $(includedir)/slv2 slv2include_HEADERS = \ - gui.h \ + ui.h \ lv2.h \ lv2_gui.h \ plugin.h \ pluginclass.h \ pluginclasses.h \ - pluginguiinstance.h \ + pluginuiinstance.h \ plugininstance.h \ plugins.h \ port.h \ diff --git a/slv2/plugin.h b/slv2/plugin.h index ed45a90..224a450 100644 --- a/slv2/plugin.h +++ b/slv2/plugin.h @@ -342,30 +342,30 @@ slv2_plugin_get_port_by_symbol(SLV2Plugin plugin, const char* symbol); -/** Get a list of all GUIs available for this plugin. +/** Get a list of all UIs available for this plugin. * - * Note this returns the URI of the GUI, and not the path/URI to its shared - * library, use slv2_plugin_gui_get_library_uri with the values returned + * Note this returns the URI of the UI, and not the path/URI to its shared + * library, use slv2_plugin_ui_get_library_uri with the values returned * here for that. * - * \param plugin The plugin to get the GUIs for. + * \param plugin The plugin to get the UIs for. * * Time = Query */ SLV2Values -slv2_plugin_get_guis(SLV2Plugin plugin); +slv2_plugin_get_uis(SLV2Plugin plugin); -/** Get the URI for a GUI library. +/** Get the URI for a UI library. * - * \param plugin The plugin that the GUI is for. - * \param gui A GUI identifier as returned by slv2_plugin_get_guis() (with type SLV2_VALUE_GUI). + * \param plugin The plugin that the UI is for. + * \param ui A UI identifier as returned by slv2_plugin_get_uis() (with type SLV2_VALUE_UI). * * Time = Query */ SLV2Value -slv2_plugin_get_gui_library_uri(SLV2Plugin plugin, - SLV2Value gui); +slv2_plugin_get_ui_library_uri(SLV2Plugin plugin, + SLV2Value ui); /** @} */ diff --git a/slv2/pluginguiinstance.h b/slv2/pluginuiinstance.h index 2eb9c60..48b915e 100644 --- a/slv2/pluginguiinstance.h +++ b/slv2/pluginuiinstance.h @@ -17,8 +17,8 @@ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __SLV2_PLUGINGUIINSTANCE_H__ -#define __SLV2_PLUGINGUIINSTANCE_H__ +#ifndef __SLV2_PLUGINUIINSTANCE_H__ +#define __SLV2_PLUGINUIINSTANCE_H__ #ifdef __cplusplus extern "C" { @@ -28,38 +28,38 @@ extern "C" { #include <slv2/lv2_gui.h> #include <slv2/plugin.h> -/** \defgroup lib Plugin GUI library access +/** \defgroup lib Plugin UI library access * - * An SLV2GUIInstance is an instantiated GUI for a SLV2Plugin. GUI instances + * An SLV2UIInstance is an instantiated UI for a SLV2Plugin. UI instances * are loaded from dynamically loaded libraries. These functions interact - * with the GUI code in the binary library only, they do not read data files + * with the UI code in the binary library only, they do not read data files * in any way. * * @{ */ -typedef struct _SLV2GUIInstanceImpl* SLV2GUIInstanceImpl; +typedef struct _SLV2UIInstanceImpl* SLV2UIInstanceImpl; struct _GtkWidget; -/** Instance of a plugin GUI. +/** Instance of a plugin UI. * * All details are in hidden in the pimpl member to avoid making the * implementation a part of the ABI. */ -typedef struct _SLV2GUIInstance { - SLV2GUIInstanceImpl pimpl; ///< Private implementation -}* SLV2GUIInstance; +typedef struct _SLV2UIInstance { + SLV2UIInstanceImpl pimpl; ///< Private implementation +}* SLV2UIInstance; -/** Instantiate a plugin GUI. +/** Instantiate a plugin UI. * * The returned object represents shared library objects loaded into memory, - * it must be cleaned up with slv2_gui_instance_free when no longer + * it must be cleaned up with slv2_ui_instance_free when no longer * needed. * * \a plugin is not modified or directly referenced by the returned object @@ -71,51 +71,51 @@ typedef struct _SLV2GUIInstance { * * \return NULL if instantiation failed. */ -SLV2GUIInstance -slv2_plugin_gtk2_gui_instantiate(SLV2Plugin plugin, - SLV2Value gui, - LV2UI_Write_Function write_function, - LV2UI_Command_Function command_function, - LV2UI_Program_Change_Function program_function, - LV2UI_Program_Save_Function save_function, - LV2UI_Controller controller, - const LV2_Host_Feature* const* host_features); - - -/** Free a plugin GUI instance. +SLV2UIInstance +slv2_plugin_ui_instantiate(SLV2Plugin plugin, + SLV2Value gui, + LV2UI_Write_Function write_function, + LV2UI_Command_Function command_function, + LV2UI_Program_Change_Function program_function, + LV2UI_Program_Save_Function save_function, + LV2UI_Controller controller, + const LV2_Host_Feature* const* host_features); + + +/** Free a plugin UI instance. * * \a instance is invalid after this call. */ void -slv2_gtk2_gui_instance_free(SLV2GUIInstance instance); +slv2_ui_instance_free(SLV2UIInstance instance); -/** Get the widget for the GUI instance. +/** Get the widget for the UI instance. */ LV2UI_Widget -slv2_gtk2_gui_instance_get_widget(SLV2GUIInstance instance); +slv2_ui_instance_get_widget(SLV2UIInstance instance); -/** Get the LV2UI_Descriptor of the plugin GUI instance. +/** Get the LV2UI_Descriptor of the plugin UI instance. * * Normally hosts should not need to access the LV2UI_Descriptor directly, - * use the slv2_gui_instance_* functions. + * use the slv2_ui_instance_* functions. * * The returned descriptor is shared and must not be deleted. */ const LV2UI_Descriptor* -slv2_gtk2_gui_instance_get_descriptor(SLV2GUIInstance instance); +slv2_ui_instance_get_descriptor(SLV2UIInstance instance); -/** Get the LV2UI_Handle of the plugin GUI instance. +/** Get the LV2UI_Handle of the plugin UI instance. * * Normally hosts should not need to access the LV2UI_Handle directly, - * use the slv2_gui_instance_* functions. + * use the slv2_ui_instance_* functions. * * The returned handle is shared and must not be deleted. */ LV2_Handle -slv2_gtk2_gui_instance_get_handle(SLV2GUIInstance instance); +slv2_ui_instance_get_handle(SLV2UIInstance instance); /** @} */ @@ -125,5 +125,5 @@ slv2_gtk2_gui_instance_get_handle(SLV2GUIInstance instance); #endif -#endif /* __SLV2_PLUGINGUIINSTANCE_H__ */ +#endif /* __SLV2_PLUGINUIINSTANCE_H__ */ diff --git a/slv2/slv2.h b/slv2/slv2.h index 14baa46..64c40c6 100644 --- a/slv2/slv2.h +++ b/slv2/slv2.h @@ -24,13 +24,13 @@ extern "C" { #endif #include <slv2/types.h> -#include <slv2/gui.h> +#include <slv2/ui.h> #include <slv2/world.h> #include <slv2/pluginclass.h> #include <slv2/plugin.h> #include <slv2/port.h> #include <slv2/plugins.h> -#include <slv2/pluginguiinstance.h> +#include <slv2/pluginuiinstance.h> #include <slv2/plugininstance.h> #include <slv2/value.h> #include <slv2/values.h> diff --git a/slv2/types.h b/slv2/types.h index 5cb21f4..53a27c6 100644 --- a/slv2/types.h +++ b/slv2/types.h @@ -69,11 +69,11 @@ typedef enum _SLV2URIType { } SLV2URIType; -/** A type of plugin GUI (corresponding to some LV2 GUI extension). +/** A type of plugin UI (corresponding to some LV2 UI extension). */ -typedef enum _SLV2GUIType { - SLV2_GUI_TYPE_GTK2 ///< http://ll-plugins.nongnu.org/lv2/ext/gtk2gui -} SLV2GUIType; +typedef enum _SLV2UIType { + SLV2_UI_TYPE_GTK2 ///< http://ll-plugins.nongnu.org/lv2/ext/gui/dev/1#GtkGUI +} SLV2UIType; /** A port on a plugin. Opaque, but valid to compare to NULL. */ @@ -108,8 +108,8 @@ typedef struct _SLV2Value* SLV2Value; typedef void* SLV2Values; -/** A plugin GUI */ -typedef void* SLV2GUI; +/** A plugin UI */ +typedef void* SLV2UI; #ifdef __cplusplus @@ -30,11 +30,11 @@ extern "C" { #include <slv2/port.h> #include <slv2/values.h> -/** \defgroup gui Plugin GUI helpers +/** \defgroup ui Plugin GUI helpers * * SLV2 provides access to plugin GUIs, but does not depend on any widget sets * itself. Paths to libraries and opaque pointers to objects are returned, but - * the GUI extension itself (the URI of which can be had with slv2_gui_get_uri) + * the GUI extension itself (the URI of which can be had with slv2_ui_get_uri) * defines the specifics of how to use these objects/files/etc. * * @{ @@ -47,7 +47,7 @@ extern "C" { * Time = O(1) */ const char* -slv2_gui_type_get_uri(SLV2GUIType type); +slv2_ui_type_get_uri(SLV2UIType type); /** @} */ diff --git a/slv2/value.h b/slv2/value.h index f2db361..47bb1ff 100644 --- a/slv2/value.h +++ b/slv2/value.h @@ -74,7 +74,7 @@ slv2_value_is_uri(SLV2Value value); /** Return this value as a URI string, e.g. "http://example.org/foo". * * Valid to call only if slv2_value_is_uri(\a value) or - * slv2_value_is_gui(\a value) returns true. + * slv2_value_is_ui(\a value) returns true. * Returned value is owned by \a value and must not be freed by caller. * * Time = O(1) @@ -175,24 +175,24 @@ slv2_value_as_int(SLV2Value value); /** Return whether this value is a GUI (URI and type). * * If this returns true, slv2_value_as_uri will return the URI of the GUI, - * and slv2_value_as_gui_type will return the SLV2GUIType (which can be + * and slv2_value_as_ui_type will return the SLV2UIType (which can be * used to find the URI of the corresponding GUI spec itself, with - * slv2_gui_type_get_uri). + * slv2_ui_type_get_uri). * * Time = O(1) */ bool -slv2_value_is_gui(SLV2Value value); +slv2_value_is_ui(SLV2Value value); -/** Return \a value as an SLV2GUIType. +/** Return \a value as an SLV2UIType. * - * Valid to call only if slv2_value_is_gui(\a value) returns true. + * Valid to call only if slv2_value_is_ui(\a value) returns true. * * Time = O(1) */ -SLV2GUIType -slv2_value_as_gui_type(SLV2Value value); +SLV2UIType +slv2_value_as_ui_type(SLV2Value value); /** @} */ |