aboutsummaryrefslogtreecommitdiffstats
path: root/lv2/ui
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-02-23 11:24:29 +0100
committerDavid Robillard <d@drobilla.net>2020-02-23 11:24:29 +0100
commit0080c435932349af4ed6e8ca8f4f09d5c3d71845 (patch)
treec7430de797bef7b815a7ad705ddf298b5f00cc2a /lv2/ui
parentf44953307bc58eb2a364297416b61c2262a64759 (diff)
downloadlv2-0080c435932349af4ed6e8ca8f4f09d5c3d71845.tar.xz
Use the same name for recursive struct types
Similar to the previous commit, this was non-standard and caused documentation issues. With this commit, the data structures index page looks as expected. Unlike the previous commit, though, these names are actually needed because the struct definition refers to itself. Simply use the same name instead of the underscore prefix, since the "struct namespace" in C is different anyway.
Diffstat (limited to 'lv2/ui')
-rw-r--r--lv2/ui/ui.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/lv2/ui/ui.h b/lv2/ui/ui.h
index adb1abf..0852050 100644
--- a/lv2/ui/ui.h
+++ b/lv2/ui/ui.h
@@ -133,7 +133,7 @@ typedef void (*LV2UI_Write_Function)(LV2UI_Controller controller,
A pointer to an object of this type is returned by the lv2ui_descriptor()
function.
*/
-typedef struct _LV2UI_Descriptor {
+typedef struct LV2UI_Descriptor {
/**
The URI for this UI (not for the plugin it controls).
*/
@@ -165,13 +165,13 @@ typedef struct _LV2UI_Descriptor {
features are not necessarily the same.
*/
- LV2UI_Handle (*instantiate)(const struct _LV2UI_Descriptor* descriptor,
- const char* plugin_uri,
- const char* bundle_path,
- LV2UI_Write_Function write_function,
- LV2UI_Controller controller,
- LV2UI_Widget* widget,
- const LV2_Feature* const* features);
+ LV2UI_Handle (*instantiate)(const struct LV2UI_Descriptor* descriptor,
+ const char* plugin_uri,
+ const char* bundle_path,
+ LV2UI_Write_Function write_function,
+ LV2UI_Controller controller,
+ LV2UI_Widget* widget,
+ const LV2_Feature* const* features);
/**