aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lv2/atom/atom-test.c10
-rw-r--r--lv2/atom/forge.h6
-rw-r--r--lv2/atom/util.h4
-rw-r--r--lv2/core/lv2_util.h4
-rw-r--r--lv2/dynmanifest/dynmanifest.h4
-rw-r--r--lv2/event/event-helpers.h6
-rw-r--r--lv2/event/event.h4
-rw-r--r--lv2/log/log.h4
-rw-r--r--lv2/log/logger.h4
-rw-r--r--lv2/options/options.h4
-rw-r--r--lv2/state/state.h4
-rw-r--r--lv2/ui/ui.h4
-rw-r--r--lv2/uri-map/uri-map.h4
-rw-r--r--lv2/worker/worker.h4
-rw-r--r--plugins/eg-amp.lv2/amp.c10
-rw-r--r--plugins/eg-fifths.lv2/fifths.c10
-rw-r--r--plugins/eg-fifths.lv2/uris.h1
-rw-r--r--plugins/eg-metro.lv2/metro.c14
-rw-r--r--plugins/eg-midigate.lv2/midigate.c12
-rw-r--r--plugins/eg-params.lv2/params.c12
-rw-r--r--plugins/eg-params.lv2/state_map.h4
-rw-r--r--plugins/eg-sampler.lv2/atom_sink.h2
-rw-r--r--plugins/eg-sampler.lv2/peaks.h5
-rw-r--r--plugins/eg-sampler.lv2/sampler.c22
-rw-r--r--plugins/eg-sampler.lv2/sampler_ui.c26
-rw-r--r--plugins/eg-sampler.lv2/uris.h2
-rw-r--r--plugins/eg-scope.lv2/examploscope.c12
-rw-r--r--plugins/eg-scope.lv2/examploscope_ui.c28
28 files changed, 118 insertions, 108 deletions
diff --git a/lv2/atom/atom-test.c b/lv2/atom/atom-test.c
index 98c9ae2..63a2bfe 100644
--- a/lv2/atom/atom-test.c
+++ b/lv2/atom/atom-test.c
@@ -14,6 +14,11 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include "lv2/atom/atom.h"
+#include "lv2/atom/forge.h"
+#include "lv2/atom/util.h"
+#include "lv2/urid/urid.h"
+
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
@@ -21,11 +26,6 @@
#include <stdlib.h>
#include <string.h>
-#include "lv2/atom/atom.h"
-#include "lv2/atom/forge.h"
-#include "lv2/atom/util.h"
-#include "lv2/urid/urid.h"
-
char** uris = NULL;
uint32_t n_uris = 0;
diff --git a/lv2/atom/forge.h b/lv2/atom/forge.h
index 50e962b..e866b38 100644
--- a/lv2/atom/forge.h
+++ b/lv2/atom/forge.h
@@ -48,14 +48,14 @@
#ifndef LV2_ATOM_FORGE_H
#define LV2_ATOM_FORGE_H
-#include <assert.h>
-#include <stdbool.h>
-
#include "lv2/atom/atom.h"
#include "lv2/atom/util.h"
#include "lv2/core/attributes.h"
#include "lv2/urid/urid.h"
+#include <assert.h>
+#include <stdbool.h>
+
#ifdef __cplusplus
extern "C" {
#endif
diff --git a/lv2/atom/util.h b/lv2/atom/util.h
index 5151f84..cf24a53 100644
--- a/lv2/atom/util.h
+++ b/lv2/atom/util.h
@@ -31,13 +31,13 @@
#ifndef LV2_ATOM_UTIL_H
#define LV2_ATOM_UTIL_H
+#include "lv2/atom/atom.h"
+
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
-#include "lv2/atom/atom.h"
-
#ifdef __cplusplus
extern "C" {
#endif
diff --git a/lv2/core/lv2_util.h b/lv2/core/lv2_util.h
index 7717b72..06174ee 100644
--- a/lv2/core/lv2_util.h
+++ b/lv2/core/lv2_util.h
@@ -20,12 +20,12 @@
@{
*/
+#include "lv2/core/lv2.h"
+
#include <stdarg.h>
#include <stdbool.h>
#include <string.h>
-#include "lv2/core/lv2.h"
-
#ifdef __cplusplus
extern "C" {
#endif
diff --git a/lv2/dynmanifest/dynmanifest.h b/lv2/dynmanifest/dynmanifest.h
index 255d063..a15eaf4 100644
--- a/lv2/dynmanifest/dynmanifest.h
+++ b/lv2/dynmanifest/dynmanifest.h
@@ -27,10 +27,10 @@
#ifndef LV2_DYN_MANIFEST_H_INCLUDED
#define LV2_DYN_MANIFEST_H_INCLUDED
-#include <stdio.h>
-
#include "lv2/core/lv2.h"
+#include <stdio.h>
+
#define LV2_DYN_MANIFEST_URI "http://lv2plug.in/ns/ext/dynmanifest" ///< http://lv2plug.in/ns/ext/dynmanifest
#define LV2_DYN_MANIFEST_PREFIX LV2_DYN_MANIFEST_URI "#" ///< http://lv2plug.in/ns/ext/dynmanifest#
diff --git a/lv2/event/event-helpers.h b/lv2/event/event-helpers.h
index a0e4c79..af72d76 100644
--- a/lv2/event/event-helpers.h
+++ b/lv2/event/event-helpers.h
@@ -22,14 +22,14 @@
#ifndef LV2_EVENT_HELPERS_H
#define LV2_EVENT_HELPERS_H
+#include "lv2/core/attributes.h"
+#include "lv2/event/event.h"
+
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
-#include "lv2/core/attributes.h"
-#include "lv2/event/event.h"
-
#ifdef __cplusplus
extern "C" {
#endif
diff --git a/lv2/event/event.h b/lv2/event/event.h
index 264f257..70cae6a 100644
--- a/lv2/event/event.h
+++ b/lv2/event/event.h
@@ -43,10 +43,10 @@
#define LV2_EVENT_AUDIO_STAMP 0 ///< Special timestamp type for audio frames
-#include <stdint.h>
-
#include "lv2/core/attributes.h"
+#include <stdint.h>
+
#ifdef __cplusplus
extern "C" {
#endif
diff --git a/lv2/log/log.h b/lv2/log/log.h
index 11bb35a..7175339 100644
--- a/lv2/log/log.h
+++ b/lv2/log/log.h
@@ -36,10 +36,10 @@
#define LV2_LOG__Warning LV2_LOG_PREFIX "Warning" ///< http://lv2plug.in/ns/ext/log#Warning
#define LV2_LOG__log LV2_LOG_PREFIX "log" ///< http://lv2plug.in/ns/ext/log#log
-#include <stdarg.h>
-
#include "lv2/urid/urid.h"
+#include <stdarg.h>
+
#ifdef __cplusplus
extern "C" {
#endif
diff --git a/lv2/log/logger.h b/lv2/log/logger.h
index 7d9b005..b66a8e4 100644
--- a/lv2/log/logger.h
+++ b/lv2/log/logger.h
@@ -28,11 +28,11 @@
#ifndef LV2_ATOM_LOGGER_H
#define LV2_ATOM_LOGGER_H
+#include "lv2/log/log.h"
+
#include <stdio.h>
#include <string.h>
-#include "lv2/log/log.h"
-
#ifdef __cplusplus
extern "C" {
#endif
diff --git a/lv2/options/options.h b/lv2/options/options.h
index c1dad83..7878c58 100644
--- a/lv2/options/options.h
+++ b/lv2/options/options.h
@@ -26,11 +26,11 @@
#ifndef LV2_OPTIONS_H
#define LV2_OPTIONS_H
-#include <stdint.h>
-
#include "lv2/core/lv2.h"
#include "lv2/urid/urid.h"
+#include <stdint.h>
+
#define LV2_OPTIONS_URI "http://lv2plug.in/ns/ext/options" ///< http://lv2plug.in/ns/ext/options
#define LV2_OPTIONS_PREFIX LV2_OPTIONS_URI "#" ///< http://lv2plug.in/ns/ext/options#
diff --git a/lv2/state/state.h b/lv2/state/state.h
index 7c1c9c0..1005d50 100644
--- a/lv2/state/state.h
+++ b/lv2/state/state.h
@@ -27,12 +27,12 @@
#ifndef LV2_STATE_H
#define LV2_STATE_H
+#include "lv2/core/lv2.h"
+
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
-#include "lv2/core/lv2.h"
-
#define LV2_STATE_URI "http://lv2plug.in/ns/ext/state" ///< http://lv2plug.in/ns/ext/state
#define LV2_STATE_PREFIX LV2_STATE_URI "#" ///< http://lv2plug.in/ns/ext/state#
diff --git a/lv2/ui/ui.h b/lv2/ui/ui.h
index a99b8d8..450a41e 100644
--- a/lv2/ui/ui.h
+++ b/lv2/ui/ui.h
@@ -28,11 +28,11 @@
#ifndef LV2_UI_H
#define LV2_UI_H
+#include "lv2/core/lv2.h"
+
#include <stdbool.h>
#include <stdint.h>
-#include "lv2/core/lv2.h"
-
#define LV2_UI_URI "http://lv2plug.in/ns/extensions/ui" ///< http://lv2plug.in/ns/extensions/ui
#define LV2_UI_PREFIX LV2_UI_URI "#" ///< http://lv2plug.in/ns/extensions/ui#
diff --git a/lv2/uri-map/uri-map.h b/lv2/uri-map/uri-map.h
index 5974a81..7bd2724 100644
--- a/lv2/uri-map/uri-map.h
+++ b/lv2/uri-map/uri-map.h
@@ -36,10 +36,10 @@
#define LV2_URI_MAP_URI "http://lv2plug.in/ns/ext/uri-map" ///< http://lv2plug.in/ns/ext/uri-map
#define LV2_URI_MAP_PREFIX LV2_URI_MAP_URI "#" ///< http://lv2plug.in/ns/ext/uri-map#
-#include <stdint.h>
-
#include "lv2/core/attributes.h"
+#include <stdint.h>
+
#ifdef __cplusplus
extern "C" {
#endif
diff --git a/lv2/worker/worker.h b/lv2/worker/worker.h
index 6926887..f874d84 100644
--- a/lv2/worker/worker.h
+++ b/lv2/worker/worker.h
@@ -26,10 +26,10 @@
#ifndef LV2_WORKER_H
#define LV2_WORKER_H
-#include <stdint.h>
-
#include "lv2/core/lv2.h"
+#include <stdint.h>
+
#define LV2_WORKER_URI "http://lv2plug.in/ns/ext/worker" ///< http://lv2plug.in/ns/ext/worker
#define LV2_WORKER_PREFIX LV2_WORKER_URI "#" ///< http://lv2plug.in/ns/ext/worker#
diff --git a/plugins/eg-amp.lv2/amp.c b/plugins/eg-amp.lv2/amp.c
index 2c65cc4..c3ba279 100644
--- a/plugins/eg-amp.lv2/amp.c
+++ b/plugins/eg-amp.lv2/amp.c
@@ -15,11 +15,6 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/** Include standard C headers */
-#include <math.h>
-#include <stdint.h>
-#include <stdlib.h>
-
/**
LV2 headers are based on the URI of the specification they come from, so a
consistent convention can be used even for unofficial extensions. The URI
@@ -29,6 +24,11 @@
*/
#include "lv2/core/lv2.h"
+/** Include standard C headers */
+#include <math.h>
+#include <stdint.h>
+#include <stdlib.h>
+
/**
The URI is the identifier for a plugin, and how the host associates this
implementation in code with its description in data. In this plugin it is
diff --git a/plugins/eg-fifths.lv2/fifths.c b/plugins/eg-fifths.lv2/fifths.c
index 9e6df7a..0abcfbd 100644
--- a/plugins/eg-fifths.lv2/fifths.c
+++ b/plugins/eg-fifths.lv2/fifths.c
@@ -15,10 +15,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <stdbool.h>
-#include <stdint.h>
-#include <stdio.h>
-#include <stdlib.h>
+#include "./uris.h"
#include "lv2/atom/atom.h"
#include "lv2/atom/util.h"
@@ -29,7 +26,10 @@
#include "lv2/midi/midi.h"
#include "lv2/urid/urid.h"
-#include "./uris.h"
+#include <stdbool.h>
+#include <stdint.h>
+#include <stdio.h>
+#include <stdlib.h>
enum {
FIFTHS_IN = 0,
diff --git a/plugins/eg-fifths.lv2/uris.h b/plugins/eg-fifths.lv2/uris.h
index de297dc..04b09f6 100644
--- a/plugins/eg-fifths.lv2/uris.h
+++ b/plugins/eg-fifths.lv2/uris.h
@@ -18,6 +18,7 @@
#ifndef FIFTHS_URIS_H
#define FIFTHS_URIS_H
+#include "lv2/atom/atom.h"
#include "lv2/log/log.h"
#include "lv2/midi/midi.h"
#include "lv2/patch/patch.h"
diff --git a/plugins/eg-metro.lv2/metro.c b/plugins/eg-metro.lv2/metro.c
index a948d28..a7231d2 100644
--- a/plugins/eg-metro.lv2/metro.c
+++ b/plugins/eg-metro.lv2/metro.c
@@ -15,13 +15,6 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <math.h>
-#include <stdbool.h>
-#include <stdint.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
#include "lv2/atom/atom.h"
#include "lv2/atom/util.h"
#include "lv2/core/lv2.h"
@@ -31,6 +24,13 @@
#include "lv2/time/time.h"
#include "lv2/urid/urid.h"
+#include <math.h>
+#include <stdbool.h>
+#include <stdint.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
#ifndef M_PI
# define M_PI 3.14159265
#endif
diff --git a/plugins/eg-midigate.lv2/midigate.c b/plugins/eg-midigate.lv2/midigate.c
index 8ec5721..70901f6 100644
--- a/plugins/eg-midigate.lv2/midigate.c
+++ b/plugins/eg-midigate.lv2/midigate.c
@@ -14,12 +14,6 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <stdbool.h>
-#include <stdint.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
#include "lv2/atom/atom.h"
#include "lv2/atom/util.h"
#include "lv2/core/lv2.h"
@@ -29,6 +23,12 @@
#include "lv2/midi/midi.h"
#include "lv2/urid/urid.h"
+#include <stdbool.h>
+#include <stdint.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
#define MIDIGATE_URI "http://lv2plug.in/plugins/eg-midigate"
typedef enum {
diff --git a/plugins/eg-params.lv2/params.c b/plugins/eg-params.lv2/params.c
index b2a79d3..94d34a5 100644
--- a/plugins/eg-params.lv2/params.c
+++ b/plugins/eg-params.lv2/params.c
@@ -15,11 +15,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <stdbool.h>
-#include <stdint.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
+#include "state_map.h"
#include "lv2/atom/atom.h"
#include "lv2/atom/forge.h"
@@ -33,7 +29,11 @@
#include "lv2/state/state.h"
#include "lv2/urid/urid.h"
-#include "state_map.h"
+#include <stdbool.h>
+#include <stdint.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#define MAX_STRING 1024
diff --git a/plugins/eg-params.lv2/state_map.h b/plugins/eg-params.lv2/state_map.h
index cd97a80..c80d4a2 100644
--- a/plugins/eg-params.lv2/state_map.h
+++ b/plugins/eg-params.lv2/state_map.h
@@ -15,6 +15,10 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include "lv2/atom/atom.h"
+#include "lv2/urid/urid.h"
+
+#include <stdarg.h>
#include <stdlib.h>
/** Entry in an array that serves as a dictionary of properties. */
diff --git a/plugins/eg-sampler.lv2/atom_sink.h b/plugins/eg-sampler.lv2/atom_sink.h
index ae3df30..b84ca55 100644
--- a/plugins/eg-sampler.lv2/atom_sink.h
+++ b/plugins/eg-sampler.lv2/atom_sink.h
@@ -14,6 +14,8 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include "lv2/atom/forge.h"
+
/**
A forge sink that writes to an atom buffer.
diff --git a/plugins/eg-sampler.lv2/peaks.h b/plugins/eg-sampler.lv2/peaks.h
index e3002c2..a5bd267 100644
--- a/plugins/eg-sampler.lv2/peaks.h
+++ b/plugins/eg-sampler.lv2/peaks.h
@@ -28,10 +28,11 @@
#ifndef PEAKS_H_INCLUDED
#define PEAKS_H_INCLUDED
-#include <math.h>
-
#include "lv2/atom/forge.h"
+#include <math.h>
+#include <stdlib.h>
+
#define PEAKS_URI "http://lv2plug.in/ns/peaks#"
#define PEAKS__PeakUpdate PEAKS_URI "PeakUpdate"
#define PEAKS__magnitudes PEAKS_URI "magnitudes"
diff --git a/plugins/eg-sampler.lv2/sampler.c b/plugins/eg-sampler.lv2/sampler.c
index 369fc1e..4e6afdf 100644
--- a/plugins/eg-sampler.lv2/sampler.c
+++ b/plugins/eg-sampler.lv2/sampler.c
@@ -17,14 +17,9 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <math.h>
-#include <stdbool.h>
-#include <stdint.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include <sndfile.h>
+#include "atom_sink.h"
+#include "peaks.h"
+#include "uris.h"
#include "lv2/atom/atom.h"
#include "lv2/atom/forge.h"
@@ -38,9 +33,14 @@
#include "lv2/urid/urid.h"
#include "lv2/worker/worker.h"
-#include "atom_sink.h"
-#include "peaks.h"
-#include "uris.h"
+#include <sndfile.h>
+
+#include <math.h>
+#include <stdbool.h>
+#include <stdint.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
enum {
SAMPLER_CONTROL = 0,
diff --git a/plugins/eg-sampler.lv2/sampler_ui.c b/plugins/eg-sampler.lv2/sampler_ui.c
index e52d679..89bca2f 100644
--- a/plugins/eg-sampler.lv2/sampler_ui.c
+++ b/plugins/eg-sampler.lv2/sampler_ui.c
@@ -15,17 +15,8 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <stdbool.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include <cairo.h>
-#include <gdk/gdk.h>
-#include <glib-object.h>
-#include <glib.h>
-#include <gobject/gclosure.h>
-#include <gtk/gtk.h>
+#include "peaks.h"
+#include "uris.h"
#include "lv2/atom/atom.h"
#include "lv2/atom/forge.h"
@@ -38,8 +29,17 @@
#include "lv2/ui/ui.h"
#include "lv2/urid/urid.h"
-#include "peaks.h"
-#include "uris.h"
+#include <cairo.h>
+#include <gdk/gdk.h>
+#include <glib-object.h>
+#include <glib.h>
+#include <gobject/gclosure.h>
+#include <gtk/gtk.h>
+
+#include <stdbool.h>
+#include <stdint.h>
+#include <stdlib.h>
+#include <string.h>
#define SAMPLER_UI_URI "http://lv2plug.in/plugins/eg-sampler#ui"
diff --git a/plugins/eg-sampler.lv2/uris.h b/plugins/eg-sampler.lv2/uris.h
index 659d400..b3639bc 100644
--- a/plugins/eg-sampler.lv2/uris.h
+++ b/plugins/eg-sampler.lv2/uris.h
@@ -24,6 +24,8 @@
#include "lv2/patch/patch.h"
#include "lv2/state/state.h"
+#include <stdio.h>
+
#define EG_SAMPLER_URI "http://lv2plug.in/plugins/eg-sampler"
#define EG_SAMPLER__applySample EG_SAMPLER_URI "#applySample"
#define EG_SAMPLER__freeSample EG_SAMPLER_URI "#freeSample"
diff --git a/plugins/eg-scope.lv2/examploscope.c b/plugins/eg-scope.lv2/examploscope.c
index d675cb2..aa542c8 100644
--- a/plugins/eg-scope.lv2/examploscope.c
+++ b/plugins/eg-scope.lv2/examploscope.c
@@ -15,11 +15,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <stdbool.h>
-#include <stdint.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
+#include "./uris.h"
#include "lv2/atom/atom.h"
#include "lv2/atom/forge.h"
@@ -31,7 +27,11 @@
#include "lv2/state/state.h"
#include "lv2/urid/urid.h"
-#include "./uris.h"
+#include <stdbool.h>
+#include <stdint.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
/**
==== Private Plugin Instance Structure ====
diff --git a/plugins/eg-scope.lv2/examploscope_ui.c b/plugins/eg-scope.lv2/examploscope_ui.c
index 1639ae9..ce0000c 100644
--- a/plugins/eg-scope.lv2/examploscope_ui.c
+++ b/plugins/eg-scope.lv2/examploscope_ui.c
@@ -14,19 +14,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <assert.h>
-#include <stdbool.h>
-#include <stdint.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include <cairo.h>
-#include <gdk/gdk.h>
-#include <glib-object.h>
-#include <glib.h>
-#include <gobject/gclosure.h>
-#include <gtk/gtk.h>
+#include "./uris.h"
#include "lv2/atom/atom.h"
#include "lv2/atom/forge.h"
@@ -35,7 +23,19 @@
#include "lv2/ui/ui.h"
#include "lv2/urid/urid.h"
-#include "./uris.h"
+#include <cairo.h>
+#include <gdk/gdk.h>
+#include <glib-object.h>
+#include <glib.h>
+#include <gobject/gclosure.h>
+#include <gtk/gtk.h>
+
+#include <assert.h>
+#include <stdbool.h>
+#include <stdint.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
// Drawing area size
#define DAWIDTH (640)