aboutsummaryrefslogtreecommitdiffstats
path: root/lv2/core/lv2.h
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/core/lv2.h
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/core/lv2.h')
-rw-r--r--lv2/core/lv2.h10
1 files changed, 5 insertions, 5 deletions
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.