aboutsummaryrefslogtreecommitdiffstats
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
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.
-rw-r--r--lv2/atom/forge.h6
-rw-r--r--lv2/core/lv2.h10
-rw-r--r--lv2/ui/ui.h16
3 files changed, 16 insertions, 16 deletions
diff --git a/lv2/atom/forge.h b/lv2/atom/forge.h
index 5bcd816..e992ff2 100644
--- a/lv2/atom/forge.h
+++ b/lv2/atom/forge.h
@@ -81,9 +81,9 @@ typedef LV2_Atom*
LV2_Atom_Forge_Ref ref);
/** A stack frame used for keeping track of nested Atom containers. */
-typedef struct _LV2_Atom_Forge_Frame {
- struct _LV2_Atom_Forge_Frame* parent;
- LV2_Atom_Forge_Ref ref;
+typedef struct LV2_Atom_Forge_Frame {
+ struct LV2_Atom_Forge_Frame* parent;
+ LV2_Atom_Forge_Ref ref;
} LV2_Atom_Forge_Frame;
/** A "forge" for creating atoms by appending to a buffer. */
diff --git a/lv2/core/lv2.h b/lv2/core/lv2.h
index 82cf2b3..77d58ee 100644
--- a/lv2/core/lv2.h
+++ b/lv2/core/lv2.h
@@ -163,7 +163,7 @@ typedef struct {
This structure provides the core functions necessary to instantiate and use
a plugin.
*/
-typedef struct _LV2_Descriptor {
+typedef struct LV2_Descriptor {
/**
A globally unique, case-sensitive identifier for this plugin.
@@ -201,10 +201,10 @@ typedef struct _LV2_Descriptor {
@return A handle for the new plugin instance, or NULL if instantiation
has failed.
*/
- LV2_Handle (*instantiate)(const struct _LV2_Descriptor * descriptor,
- double sample_rate,
- const char * bundle_path,
- const LV2_Feature *const * features);
+ LV2_Handle (*instantiate)(const struct LV2_Descriptor * descriptor,
+ double sample_rate,
+ const char * bundle_path,
+ const LV2_Feature *const * features);
/**
Connect a port on a plugin instance to a memory location.
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);
/**