diff options
author | David Robillard <d@drobilla.net> | 2011-03-17 20:01:11 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-03-17 20:01:11 +0000 |
commit | e1c4f613c1554c93257667420b06c5729bb9edcd (patch) | |
tree | b8fca1f0bcea8f871393318c918677dc8eb1a28e /slv2 | |
parent | 6e48279e05ee9c261aaeb20853a0fce961fbd7f7 (diff) | |
download | lilv-e1c4f613c1554c93257667420b06c5729bb9edcd.tar.gz lilv-e1c4f613c1554c93257667420b06c5729bb9edcd.tar.bz2 lilv-e1c4f613c1554c93257667420b06c5729bb9edcd.zip |
Improve documentation.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@3110 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'slv2')
-rw-r--r-- | slv2/slv2.h | 40 |
1 files changed, 25 insertions, 15 deletions
diff --git a/slv2/slv2.h b/slv2/slv2.h index 5536740..52da71b 100644 --- a/slv2/slv2.h +++ b/slv2/slv2.h @@ -83,6 +83,16 @@ typedef struct _SLV2ScalePoint* SLV2ScalePoint; /**< Scale Point (Notch). */ typedef struct _SLV2UI* SLV2UI; /**< Plugin UI. */ typedef struct _SLV2Value* SLV2Value; /**< Typed Value. */ typedef struct _SLV2World* SLV2World; /**< SLV2 World. */ +typedef struct _SLV2UIInstance* SLV2UIInstance; /**< Plugin UI Instance. */ + +/** + A UI host descriptor. + + A UI host descriptor contains the various functions that a plugin UI may use + to communicate with the plugin. It is passed to @ref slv2_ui_instance_new to + provide these functions to the UI. +*/ +typedef struct _SLV2UIHost* SLV2UIHost; typedef void* SLV2PluginClasses; /**< set<PluginClass>. */ typedef void* SLV2Plugins; /**< set<Plugin>. */ @@ -305,11 +315,12 @@ slv2_value_as_bool(SLV2Value value); <li>SLV2UIs (function prefix "slv2_uis_")</li> </ul> - Each collection type supports the following functions: + Each collection type supports a similar basic API: <ul> - <li>PREFIX_free (coll)</li> - <li>PREFIX_size (coll)</li> - <li>PREFIX_get_at (coll, index)</li> + <li>void PREFIX_free (coll)</li> + <li>unsigned PREFIX_size (coll)</li> + <li>SLV2Iter PREFIX_begin (coll)</li> + <li>ELEM PREFIX_get_at (coll, index) (DEPRECATED)</li> </ul> @{ */ @@ -318,10 +329,12 @@ slv2_value_as_bool(SLV2Value value); typedef void* SLV2Iter; +/** Increment @a i to point at the next element in the collection. */ SLV2_API SLV2Iter slv2_iter_next(SLV2Iter i); +/** Return true iff @a i is at the end of the collection. */ SLV2_API bool slv2_iter_end(SLV2Iter i); @@ -1132,6 +1145,10 @@ slv2_plugin_class_get_children(SLV2PluginClass plugin_class); typedef struct _SLV2InstanceImpl* SLV2InstanceImpl; +/** + @cond 0 +*/ + /* Instance of a plugin. This is exposed in the ABI to allow inlining of performance critical functions like slv2_instance_run (simple wrappers of functions in lv2.h). @@ -1146,6 +1163,10 @@ typedef struct _Instance { }* SLV2Instance; /** + @endcond +*/ + +/** Instantiate a plugin. The returned value is a lightweight handle for an LV2 plugin instance, it does not refer to @a plugin, or any other SLV2 state. The caller must @@ -1377,8 +1398,6 @@ slv2_ui_get_binary_uri(SLV2UI ui); @{ */ -typedef struct _SLV2UIInstance* SLV2UIInstance; - /** DEPRECATED: Instantiate a plugin UI. This function is deprecated, it does not support widget wrapping. @@ -1393,15 +1412,6 @@ slv2_ui_instantiate(SLV2Plugin plugin, LV2UI_Controller controller, const LV2_Feature* const* features); -/** - A UI host descriptor. - - A UI host descriptor contains the various functions that a plugin UI may - use to communicate with the plugin. It is passed to @ref - slv2_ui_instance_new to provide these functions to the UI. -*/ -typedef struct _SLV2UIHost* SLV2UIHost; - typedef uint32_t (*SLV2PortIndexFunction)(LV2UI_Controller controller, const char* port_symbol); |