diff options
author | David Robillard <d@drobilla.net> | 2020-02-23 11:17:38 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-02-23 11:17:38 +0100 |
commit | f44953307bc58eb2a364297416b61c2262a64759 (patch) | |
tree | aaf5b6360fb622325ad4a1dd035ec784503a2064 /lv2 | |
parent | a7a8d43cd191aa0e613164b9fae56165ae9b1f81 (diff) | |
download | lv2-f44953307bc58eb2a364297416b61c2262a64759.tar.xz |
Remove unnecessary struct names
These are not necessary since they are not recursive types, and the names
violated the C standard. There also seems to be a bug in Doxygen where
TYPEDEF_HIDES_STRUCT was not working, which made the documentation confusing
and ugly.
Strictly speaking, this could break user code that used these names directly,
but this was never intended to be supported and should be fixed if it actually
occurs anywhere.
Diffstat (limited to 'lv2')
-rw-r--r-- | lv2/core/lv2.h | 2 | ||||
-rw-r--r-- | lv2/log/log.h | 2 | ||||
-rw-r--r-- | lv2/options/options.h | 4 | ||||
-rw-r--r-- | lv2/state/state.h | 2 | ||||
-rw-r--r-- | lv2/ui/ui.h | 14 | ||||
-rw-r--r-- | lv2/urid/urid.h | 4 | ||||
-rw-r--r-- | lv2/worker/worker.h | 4 |
7 files changed, 16 insertions, 16 deletions
diff --git a/lv2/core/lv2.h b/lv2/core/lv2.h index eaca514..82cf2b3 100644 --- a/lv2/core/lv2.h +++ b/lv2/core/lv2.h @@ -140,7 +140,7 @@ typedef void * LV2_Handle; features and specify the `URI` and `data` to be used if necessary. Some features, such as lv2:isLive, do not require the host to pass data. */ -typedef struct _LV2_Feature { +typedef struct { /** A globally unique, case-sensitive identifier (URI) for this feature. diff --git a/lv2/log/log.h b/lv2/log/log.h index 7175339..d60ebb4 100644 --- a/lv2/log/log.h +++ b/lv2/log/log.h @@ -61,7 +61,7 @@ typedef void* LV2_Log_Handle; /** Log feature (LV2_LOG__log) */ -typedef struct _LV2_Log { +typedef struct { /** Opaque pointer to host data. diff --git a/lv2/options/options.h b/lv2/options/options.h index 7878c58..6d7fe77 100644 --- a/lv2/options/options.h +++ b/lv2/options/options.h @@ -85,7 +85,7 @@ typedef enum { with data pointed to an array of options terminated by a zeroed option, or accessed/manipulated using LV2_Options_Interface. */ -typedef struct _LV2_Options_Option { +typedef struct { LV2_Options_Context context; /**< Context (type of subject). */ uint32_t subject; /**< Subject. */ LV2_URID key; /**< Key (property). */ @@ -106,7 +106,7 @@ typedef enum { /** Interface for dynamically setting options (LV2_OPTIONS__interface). */ -typedef struct _LV2_Options_Interface { +typedef struct { /** Get the given options. diff --git a/lv2/state/state.h b/lv2/state/state.h index 45eb7e4..365711a 100644 --- a/lv2/state/state.h +++ b/lv2/state/state.h @@ -194,7 +194,7 @@ typedef const void* (*LV2_State_Retrieve_Function)( authors should consider this possibility, and always store sensible data with meaningful types to avoid such problems in the future. */ -typedef struct _LV2_State_Interface { +typedef struct { /** Save plugin state using a host-provided `store` callback. diff --git a/lv2/ui/ui.h b/lv2/ui/ui.h index 450a41e..adb1abf 100644 --- a/lv2/ui/ui.h +++ b/lv2/ui/ui.h @@ -223,7 +223,7 @@ typedef struct _LV2UI_Descriptor { LV2UI_Descriptor::instantiate(), or as an interface provided by a UI via LV2UI_Descriptor::extension_data()). */ -typedef struct _LV2UI_Resize { +typedef struct { /** Pointer to opaque data which must be passed to ui_resize(). */ @@ -251,7 +251,7 @@ typedef struct _LV2UI_Resize { symbol. This makes it possible to implement and distribute a UI separately from the plugin (since symbol, unlike index, is a stable port identifier). */ -typedef struct _LV2UI_Port_Map { +typedef struct { /** Pointer to opaque data which must be passed to port_index(). */ @@ -269,7 +269,7 @@ typedef struct _LV2UI_Port_Map { /** Feature to subscribe to port updates (LV2_UI__portSubscribe). */ -typedef struct _LV2UI_Port_Subscribe { +typedef struct { /** Pointer to opaque data which must be passed to subscribe() and unsubscribe(). @@ -320,7 +320,7 @@ typedef struct _LV2UI_Port_Subscribe { /** A feature to notify the host that the user has grabbed a UI control. */ -typedef struct _LV2UI_Touch { +typedef struct { /** Pointer to opaque data which must be passed to ui_resize(). */ @@ -348,7 +348,7 @@ typedef struct _LV2UI_Touch { UIs can provide this interface to have an idle() callback called by the host rapidly to update the UI. */ -typedef struct _LV2UI_Idle_Interface { +typedef struct { /** Run a single iteration of the UI's idle loop. @@ -377,7 +377,7 @@ typedef struct _LV2UI_Idle_Interface { - If idle() returns non-zero, the host MUST call hide() and stop calling idle(). It MAY later call show() then resume calling idle(). */ -typedef struct _LV2UI_Show_Interface { +typedef struct { /** Show a window for this UI. @@ -400,7 +400,7 @@ typedef struct _LV2UI_Show_Interface { /** Peak data for a slice of time, the update format for ui:peakProtocol. */ -typedef struct _LV2UI_Peak_Data { +typedef struct { /** The start of the measurement period. This is just a running counter that is only meaningful in comparison to previous values and must not be diff --git a/lv2/urid/urid.h b/lv2/urid/urid.h index c9ee2e0..c74aaed 100644 --- a/lv2/urid/urid.h +++ b/lv2/urid/urid.h @@ -60,7 +60,7 @@ typedef uint32_t LV2_URID; /** URID Map Feature (LV2_URID__map) */ -typedef struct _LV2_URID_Map { +typedef struct { /** Opaque pointer to host data. @@ -97,7 +97,7 @@ typedef struct _LV2_URID_Map { /** URI Unmap Feature (LV2_URID__unmap) */ -typedef struct _LV2_URID_Unmap { +typedef struct { /** Opaque pointer to host data. diff --git a/lv2/worker/worker.h b/lv2/worker/worker.h index f874d84..2c25425 100644 --- a/lv2/worker/worker.h +++ b/lv2/worker/worker.h @@ -71,7 +71,7 @@ typedef LV2_Worker_Status (*LV2_Worker_Respond_Function)( The plugin's extension_data() method should return an LV2_Worker_Interface when called with LV2_WORKER__interface as its argument. */ -typedef struct _LV2_Worker_Interface { +typedef struct { /** The worker method. This is called by the host in a non-realtime context as requested, possibly with an arbitrary message to handle. @@ -129,7 +129,7 @@ typedef void* LV2_Worker_Schedule_Handle; The host passes this feature to provide a schedule_work() function, which the plugin can use to schedule a worker call from run(). */ -typedef struct _LV2_Worker_Schedule { +typedef struct { /** Opaque host data. */ |