aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-12 20:17:38 +0000
committerDavid Robillard <d@drobilla.net>2012-04-12 20:17:38 +0000
commit9397371fe3c41a35f81668cdf2e66a8f395e2008 (patch)
tree27afc7a0b1b36e58156fd77d22fd45ca2946bf2e
parente3e7dcfa043ee95ea419c8407716831e1141d454 (diff)
downloadlv2-9397371fe3c41a35f81668cdf2e66a8f395e2008.tar.xz
Lint.
-rw-r--r--lv2/lv2plug.in/ns/ext/data-access/data-access.h3
-rw-r--r--lv2/lv2plug.in/ns/ext/event/event.h6
-rw-r--r--lv2/lv2plug.in/ns/ext/instance-access/instance-access.h29
-rw-r--r--lv2/lv2plug.in/ns/ext/patch/patch.h2
-rw-r--r--lv2/lv2plug.in/ns/ext/resize-port/resize-port.h2
-rw-r--r--lv2/lv2plug.in/ns/ext/state/state.h8
-rw-r--r--lv2/lv2plug.in/ns/ext/uri-map/uri-map.h2
-rw-r--r--wscript2
8 files changed, 17 insertions, 37 deletions
diff --git a/lv2/lv2plug.in/ns/ext/data-access/data-access.h b/lv2/lv2plug.in/ns/ext/data-access/data-access.h
index 244204a..b19f65f 100644
--- a/lv2/lv2plug.in/ns/ext/data-access/data-access.h
+++ b/lv2/lv2plug.in/ns/ext/data-access/data-access.h
@@ -50,7 +50,6 @@ typedef struct {
the normal LV2 UI communication system.
*/
const void* (*data_access)(const char* uri);
-
} LV2_Extension_Data_Feature;
-#endif /* LV2_DATA_ACCESS_H */
+#endif /* LV2_DATA_ACCESS_H */
diff --git a/lv2/lv2plug.in/ns/ext/event/event.h b/lv2/lv2plug.in/ns/ext/event/event.h
index 88ef01d..aeb1332 100644
--- a/lv2/lv2plug.in/ns/ext/event/event.h
+++ b/lv2/lv2plug.in/ns/ext/event/event.h
@@ -72,7 +72,6 @@ static const uint32_t LV2_EVENT_PPQN = 3136573440U;
memcpy(ev_copy, ev, sizeof(LV2_Event) + ev->size); (or equivalent)
*/
typedef struct {
-
/**
The frames portion of timestamp. The units used here can optionally be
set for a port (with the lv2ev:timeUnits property), otherwise this is
@@ -113,7 +112,6 @@ typedef struct {
uint16_t size;
/* size bytes of data follow here */
-
} LV2_Event;
@@ -134,7 +132,6 @@ typedef struct {
|FRAMES |SUBFRMS|TYP|LEN|DATA..DATA..PAD|FRAMES | ...
*/
typedef struct {
-
/**
The contents of the event buffer. This may or may not reside in the
same block of memory as this header, plugins must not assume either.
@@ -211,7 +208,6 @@ typedef struct {
Any initial value should be ignored by the plugin.
*/
uint32_t size;
-
} LV2_Event_Buffer;
@@ -230,7 +226,6 @@ typedef void* LV2_Event_Callback_Data;
is not mandatory to support the event extension.
*/
typedef struct {
-
/**
Opaque pointer to host data.
@@ -286,7 +281,6 @@ typedef struct {
*/
uint32_t (*lv2_event_unref)(LV2_Event_Callback_Data callback_data,
LV2_Event* event);
-
} LV2_Event_Feature;
diff --git a/lv2/lv2plug.in/ns/ext/instance-access/instance-access.h b/lv2/lv2plug.in/ns/ext/instance-access/instance-access.h
index 7e18ee4..06d8dde 100644
--- a/lv2/lv2plug.in/ns/ext/instance-access/instance-access.h
+++ b/lv2/lv2plug.in/ns/ext/instance-access/instance-access.h
@@ -1,6 +1,6 @@
/*
LV2 Instance Access Extension
- Copyright 2008-2011 David Robillard <http://drobilla.net>
+ Copyright 2008-2012 David Robillard <http://drobilla.net>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
@@ -20,19 +20,18 @@
#define LV2_INSTANCE_ACCESS_URI "http://lv2plug.in/ns/ext/instance-access"
+/**
+ @file instance-access.h
+ C header for the LV2 Instance Access extension
+ <http://lv2plug.in/ns/ext/instance-access>.
+
+ This extension defines a method for (e.g.) plugin UIs to get a direct
+ handle to an LV2 plugin instance (LV2_Handle), if possible.
+
+ To support this feature the host must pass an LV2_Feature struct to the
+ UI instantiate method with URI "http://lv2plug.in/ns/ext/instance-access"
+ and data pointed directly to the LV2_Handle of the plugin instance.
+*/
-/** @file
- * C header for the LV2 Instance Access extension
- * <http://lv2plug.in/ns/ext/instance-access>.
- *
- * This extension defines a method for (e.g.) plugin UIs to get a direct
- * handle to an LV2 plugin instance (LV2_Handle), if possible.
- *
- * To support this feature the host must pass an LV2_Feature struct to the
- * UI instantiate method with URI "http://lv2plug.in/ns/ext/instance-access"
- * and data pointed directly to the LV2_Handle of the plugin instance.
- */
-
-
-#endif /* LV2_INSTANCE_ACCESS_H */
+#endif /* LV2_INSTANCE_ACCESS_H */
diff --git a/lv2/lv2plug.in/ns/ext/patch/patch.h b/lv2/lv2plug.in/ns/ext/patch/patch.h
index aad3788..d03cdae 100644
--- a/lv2/lv2plug.in/ns/ext/patch/patch.h
+++ b/lv2/lv2plug.in/ns/ext/patch/patch.h
@@ -15,7 +15,7 @@
*/
/**
- @file patch.h C header for the LV2 Message extension
+ @file patch.h C header for the LV2 Patch extension
<http://lv2plug.in/ns/ext/patch>.
The patch extension is purely data, this header merely defines URIs
diff --git a/lv2/lv2plug.in/ns/ext/resize-port/resize-port.h b/lv2/lv2plug.in/ns/ext/resize-port/resize-port.h
index 4da4254..c1419e6 100644
--- a/lv2/lv2plug.in/ns/ext/resize-port/resize-port.h
+++ b/lv2/lv2plug.in/ns/ext/resize-port/resize-port.h
@@ -31,7 +31,6 @@ extern "C" {
typedef void* LV2_Resize_Port_Feature_Data;
typedef struct {
-
LV2_Resize_Port_Feature_Data data;
/** Resize a port buffer to at least @a size bytes.
@@ -53,7 +52,6 @@ typedef struct {
bool (*resize_port)(LV2_Resize_Port_Feature_Data data,
uint32_t index,
size_t size);
-
} LV2_Resize_Port_Feature;
#ifdef __cplusplus
diff --git a/lv2/lv2plug.in/ns/ext/state/state.h b/lv2/lv2plug.in/ns/ext/state/state.h
index 44e19cb..ff53e56 100644
--- a/lv2/lv2plug.in/ns/ext/state/state.h
+++ b/lv2/lv2plug.in/ns/ext/state/state.h
@@ -54,7 +54,6 @@ typedef void* LV2_State_Make_Path_Handle;
(de-)serialise the value data, or whether it is even possible to do so.
*/
typedef enum {
-
/**
Plain Old Data.
@@ -90,7 +89,6 @@ typedef enum {
and portability.
*/
LV2_STATE_IS_NATIVE = 1 << 2
-
} LV2_State_Flags;
/** A status code for state functions. */
@@ -188,7 +186,6 @@ typedef const void* (*LV2_State_Retrieve_Function)(
with meaningful types to avoid such problems in the future.
*/
typedef struct _LV2_State_Interface {
-
/**
Save plugin state using a host-provided @p store callback.
@@ -261,14 +258,12 @@ typedef struct _LV2_State_Interface {
LV2_State_Handle handle,
uint32_t flags,
const LV2_Feature *const * features);
-
} LV2_State_Interface;
/**
Feature data for state:mapPath (LV2_STATE__mapPath).
*/
typedef struct {
-
/**
Opaque host data.
*/
@@ -311,14 +306,12 @@ typedef struct {
*/
char* (*absolute_path)(LV2_State_Map_Path_Handle handle,
const char* abstract_path);
-
} LV2_State_Map_Path;
/**
Feature data for state:makePath (@ref LV2_STATE__makePath).
*/
typedef struct {
-
/**
Opaque host data.
*/
@@ -349,7 +342,6 @@ typedef struct {
*/
char* (*path)(LV2_State_Make_Path_Handle handle,
const char* path);
-
} LV2_State_Make_Path;
#ifdef __cplusplus
diff --git a/lv2/lv2plug.in/ns/ext/uri-map/uri-map.h b/lv2/lv2plug.in/ns/ext/uri-map/uri-map.h
index df22cc7..d1dc2f7 100644
--- a/lv2/lv2plug.in/ns/ext/uri-map/uri-map.h
+++ b/lv2/lv2plug.in/ns/ext/uri-map/uri-map.h
@@ -47,7 +47,6 @@ typedef void* LV2_URI_Map_Callback_Data;
and data pointed to an instance of this struct.
*/
typedef struct {
-
/**
Opaque pointer to host data.
@@ -86,7 +85,6 @@ typedef struct {
uint32_t (*uri_to_id)(LV2_URI_Map_Callback_Data callback_data,
const char* map,
const char* uri);
-
} LV2_URI_Map_Feature;
#endif /* LV2_URI_MAP_H */
diff --git a/wscript b/wscript
index 546e49e..40535b4 100644
--- a/wscript
+++ b/wscript
@@ -368,4 +368,4 @@ def lint(ctx):
+ glob.glob('lv2/lv2plug.in/ns/ext/*/*.h')
+ glob.glob('lv2/lv2plug.in/ns/extensions/*/*.h')
+ glob.glob('plugins/*/*.c') + glob.glob('plugins/*.*.h')):
- subprocess.call('cpplint.py --filter=+whitespace/comments,-whitespace/tab,-whitespace/braces,-whitespace/labels,-whitespace/blank_line,-build/header_guard,-readability/casting,-readability/todo,-build/include ' + i, shell=True)
+ subprocess.call('cpplint.py --filter=+whitespace/comments,-whitespace/tab,-whitespace/braces,-whitespace/labels,-build/header_guard,-readability/casting,-build/include,-runtime/sizeof ' + i, shell=True)