From 0080c435932349af4ed6e8ca8f4f09d5c3d71845 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 23 Feb 2020 11:24:29 +0100 Subject: 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. --- lv2/ui/ui.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'lv2/ui/ui.h') 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); /** -- cgit v1.2.1