summaryrefslogtreecommitdiffstats
path: root/suil
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-04-28 00:40:03 +0000
committerDavid Robillard <d@drobilla.net>2011-04-28 00:40:03 +0000
commit3f09b87f2a1d6d0b6c913be7e95ce58b2d5ec80b (patch)
tree5362a4e0725d80a26376870422203e41af2bd377 /suil
parentf5e6d0f800973cb7e834b838888c749d574d02be (diff)
downloadsuil-3f09b87f2a1d6d0b6c913be7e95ce58b2d5ec80b.tar.gz
suil-3f09b87f2a1d6d0b6c913be7e95ce58b2d5ec80b.tar.bz2
suil-3f09b87f2a1d6d0b6c913be7e95ce58b2d5ec80b.zip
Don't hide pointers behind typedefs.
git-svn-id: http://svn.drobilla.net/lad/trunk/suil@3203 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'suil')
-rw-r--r--suil/suil.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/suil/suil.h b/suil/suil.h
index 93c9ed3..7951d42 100644
--- a/suil/suil.h
+++ b/suil/suil.h
@@ -60,10 +60,10 @@ extern "C" {
with the plugin. It is passed to @ref suil_instance_new to provide
these functions to the UI.
*/
-typedef struct _SuilHost* SuilHost;
+typedef struct SuilHostImpl SuilHost;
/** An instance of an LV2 plugin UI. */
-typedef struct _SuilInstance* SuilInstance;
+typedef struct SuilInstanceImpl SuilInstance;
/** Opaque pointer to a UI widget. */
typedef void* SuilWidget;
@@ -110,7 +110,7 @@ typedef uint32_t (*SuilPortUnsubscribeFunc)(SuilController controller
@param unsubscribe_func Function to unsubscribe from port updates.
*/
SUIL_API
-SuilHost
+SuilHost*
suil_host_new(SuilPortWriteFunc write_func,
SuilPortIndexFunc index_func,
SuilPortSubscribeFunc subscribe_func,
@@ -121,7 +121,7 @@ suil_host_new(SuilPortWriteFunc write_func,
*/
SUIL_API
void
-suil_host_free(SuilHost host);
+suil_host_free(SuilHost* host);
/**
Check if suil can wrap a UI type.
@@ -152,8 +152,8 @@ suil_ui_supported(const char* host_type_uri,
@return A new UI instance, or NULL if instantiation failed.
*/
SUIL_API
-SuilInstance
-suil_instance_new(SuilHost host,
+SuilInstance*
+suil_instance_new(SuilHost* host,
SuilController controller,
const char* container_type_uri,
const char* plugin_uri,
@@ -171,7 +171,7 @@ suil_instance_new(SuilHost host,
*/
SUIL_API
void
-suil_instance_free(SuilInstance instance);
+suil_instance_free(SuilInstance* instance);
/**
Get the widget for a UI instance.
@@ -183,26 +183,26 @@ suil_instance_free(SuilInstance instance);
*/
SUIL_API
SuilWidget
-suil_instance_get_widget(SuilInstance instance);
+suil_instance_get_widget(SuilInstance* instance);
/**
Notify the UI about a change in a plugin port.
*/
SUIL_API
void
-suil_instance_port_event(SuilInstance instance,
- uint32_t port_index,
- uint32_t buffer_size,
- uint32_t format,
- const void* buffer);
+suil_instance_port_event(SuilInstance* instance,
+ uint32_t port_index,
+ uint32_t buffer_size,
+ uint32_t format,
+ const void* buffer);
/**
Return a data structure defined by some LV2 extension URI.
*/
SUIL_API
const void*
-suil_instance_extension_data(SuilInstance instance,
- const char* uri);
+suil_instance_extension_data(SuilInstance* instance,
+ const char* uri);
/**
@}