aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-09-23 13:32:00 +0200
committerDavid Robillard <d@drobilla.net>2018-09-23 13:39:35 +0200
commit973b8fbca869e062f39caac140b39406ad9896c5 (patch)
tree29e29d5b15c2769ea504fc92b7de941e798ad538
parent4db67120efca2d4c200d2e1ba5cf3d7b97cab97e (diff)
downloadlv2-973b8fbca869e062f39caac140b39406ad9896c5.tar.xz
Clean up includes
-rw-r--r--lv2/atom/atom-test.c4
-rw-r--r--lv2/atom/atom.h2
-rw-r--r--plugins/eg-amp.lv2/amp.c1
-rw-r--r--plugins/eg-fifths.lv2/fifths.c7
-rw-r--r--plugins/eg-fifths.lv2/uris.h1
-rw-r--r--plugins/eg-metro.lv2/metro.c2
-rw-r--r--plugins/eg-midigate.lv2/midigate.c6
-rw-r--r--plugins/eg-params.lv2/params.c4
-rw-r--r--plugins/eg-sampler.lv2/sampler.c4
-rw-r--r--plugins/eg-sampler.lv2/sampler_ui.c12
-rw-r--r--plugins/eg-sampler.lv2/uris.h3
-rw-r--r--plugins/eg-scope.lv2/examploscope.c8
-rw-r--r--plugins/eg-scope.lv2/examploscope_ui.c14
13 files changed, 56 insertions, 12 deletions
diff --git a/lv2/atom/atom-test.c b/lv2/atom/atom-test.c
index d694e4b..98c9ae2 100644
--- a/lv2/atom/atom-test.c
+++ b/lv2/atom/atom-test.c
@@ -15,12 +15,16 @@
*/
#include <stdarg.h>
+#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#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/atom.h b/lv2/atom/atom.h
index cb5c067..dd332ce 100644
--- a/lv2/atom/atom.h
+++ b/lv2/atom/atom.h
@@ -26,8 +26,8 @@
#ifndef LV2_ATOM_H
#define LV2_ATOM_H
-#include <stdint.h>
#include <stddef.h>
+#include <stdint.h>
#define LV2_ATOM_URI "http://lv2plug.in/ns/ext/atom" ///< http://lv2plug.in/ns/ext/atom
#define LV2_ATOM_PREFIX LV2_ATOM_URI "#" ///< http://lv2plug.in/ns/ext/atom#
diff --git a/plugins/eg-amp.lv2/amp.c b/plugins/eg-amp.lv2/amp.c
index b3fc7b4..2c65cc4 100644
--- a/plugins/eg-amp.lv2/amp.c
+++ b/plugins/eg-amp.lv2/amp.c
@@ -17,6 +17,7 @@
/** Include standard C headers */
#include <math.h>
+#include <stdint.h>
#include <stdlib.h>
/**
diff --git a/plugins/eg-fifths.lv2/fifths.c b/plugins/eg-fifths.lv2/fifths.c
index ef7b5a0..2bbd440 100644
--- a/plugins/eg-fifths.lv2/fifths.c
+++ b/plugins/eg-fifths.lv2/fifths.c
@@ -15,21 +15,20 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <math.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
-#include <string.h>
#ifndef __cplusplus
# include <stdbool.h>
#endif
+#include "lv2/atom/atom.h"
#include "lv2/atom/util.h"
#include "lv2/core/lv2.h"
#include "lv2/core/lv2_util.h"
+#include "lv2/log/log.h"
#include "lv2/log/logger.h"
#include "lv2/midi/midi.h"
-#include "lv2/patch/patch.h"
-#include "lv2/state/state.h"
#include "lv2/urid/urid.h"
#include "./uris.h"
diff --git a/plugins/eg-fifths.lv2/uris.h b/plugins/eg-fifths.lv2/uris.h
index 506e164..de297dc 100644
--- a/plugins/eg-fifths.lv2/uris.h
+++ b/plugins/eg-fifths.lv2/uris.h
@@ -20,6 +20,7 @@
#include "lv2/log/log.h"
#include "lv2/midi/midi.h"
+#include "lv2/patch/patch.h"
#include "lv2/state/state.h"
#define EG_FIFTHS_URI "http://lv2plug.in/plugins/eg-fifths"
diff --git a/plugins/eg-metro.lv2/metro.c b/plugins/eg-metro.lv2/metro.c
index 0f39ba1..b74b52e 100644
--- a/plugins/eg-metro.lv2/metro.c
+++ b/plugins/eg-metro.lv2/metro.c
@@ -16,6 +16,7 @@
*/
#include <math.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -27,6 +28,7 @@
#include "lv2/atom/util.h"
#include "lv2/core/lv2.h"
#include "lv2/core/lv2_util.h"
+#include "lv2/log/log.h"
#include "lv2/log/logger.h"
#include "lv2/time/time.h"
#include "lv2/urid/urid.h"
diff --git a/plugins/eg-midigate.lv2/midigate.c b/plugins/eg-midigate.lv2/midigate.c
index 7f7232d..8ec5721 100644
--- a/plugins/eg-midigate.lv2/midigate.c
+++ b/plugins/eg-midigate.lv2/midigate.c
@@ -14,15 +14,17 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include <stdbool.h>
+#include <stdint.h>
#include <stdio.h>
-
-#include <math.h>
#include <stdlib.h>
+#include <string.h>
#include "lv2/atom/atom.h"
#include "lv2/atom/util.h"
#include "lv2/core/lv2.h"
#include "lv2/core/lv2_util.h"
+#include "lv2/log/log.h"
#include "lv2/log/logger.h"
#include "lv2/midi/midi.h"
#include "lv2/urid/urid.h"
diff --git a/plugins/eg-params.lv2/params.c b/plugins/eg-params.lv2/params.c
index 14d0a53..6328601 100644
--- a/plugins/eg-params.lv2/params.c
+++ b/plugins/eg-params.lv2/params.c
@@ -15,7 +15,7 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <math.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -23,10 +23,12 @@
# include <stdbool.h>
#endif
+#include "lv2/atom/atom.h"
#include "lv2/atom/forge.h"
#include "lv2/atom/util.h"
#include "lv2/core/lv2.h"
#include "lv2/core/lv2_util.h"
+#include "lv2/log/log.h"
#include "lv2/log/logger.h"
#include "lv2/midi/midi.h"
#include "lv2/patch/patch.h"
diff --git a/plugins/eg-sampler.lv2/sampler.c b/plugins/eg-sampler.lv2/sampler.c
index cc4b3dd..efc479f 100644
--- a/plugins/eg-sampler.lv2/sampler.c
+++ b/plugins/eg-sampler.lv2/sampler.c
@@ -18,6 +18,8 @@
*/
#include <math.h>
+#include <stdint.h>
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifndef __cplusplus
@@ -26,6 +28,7 @@
#include <sndfile.h>
+#include "lv2/atom/atom.h"
#include "lv2/atom/forge.h"
#include "lv2/atom/util.h"
#include "lv2/core/lv2.h"
@@ -33,7 +36,6 @@
#include "lv2/log/log.h"
#include "lv2/log/logger.h"
#include "lv2/midi/midi.h"
-#include "lv2/patch/patch.h"
#include "lv2/state/state.h"
#include "lv2/urid/urid.h"
#include "lv2/worker/worker.h"
diff --git a/plugins/eg-sampler.lv2/sampler_ui.c b/plugins/eg-sampler.lv2/sampler_ui.c
index 4fd5488..e52d679 100644
--- a/plugins/eg-sampler.lv2/sampler_ui.c
+++ b/plugins/eg-sampler.lv2/sampler_ui.c
@@ -15,16 +15,26 @@
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 "lv2/atom/atom.h"
#include "lv2/atom/forge.h"
#include "lv2/atom/util.h"
+#include "lv2/core/lv2.h"
#include "lv2/core/lv2_util.h"
+#include "lv2/log/log.h"
#include "lv2/log/logger.h"
-#include "lv2/patch/patch.h"
+#include "lv2/midi/midi.h"
#include "lv2/ui/ui.h"
#include "lv2/urid/urid.h"
diff --git a/plugins/eg-sampler.lv2/uris.h b/plugins/eg-sampler.lv2/uris.h
index 9a34458..659d400 100644
--- a/plugins/eg-sampler.lv2/uris.h
+++ b/plugins/eg-sampler.lv2/uris.h
@@ -20,8 +20,9 @@
#include "lv2/log/log.h"
#include "lv2/midi/midi.h"
-#include "lv2/state/state.h"
#include "lv2/parameters/parameters.h"
+#include "lv2/patch/patch.h"
+#include "lv2/state/state.h"
#define EG_SAMPLER_URI "http://lv2plug.in/plugins/eg-sampler"
#define EG_SAMPLER__applySample EG_SAMPLER_URI "#applySample"
diff --git a/plugins/eg-scope.lv2/examploscope.c b/plugins/eg-scope.lv2/examploscope.c
index f45932a..d675cb2 100644
--- a/plugins/eg-scope.lv2/examploscope.c
+++ b/plugins/eg-scope.lv2/examploscope.c
@@ -15,15 +15,21 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include <stdbool.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
-#include <stdint.h>
+#include <string.h>
+#include "lv2/atom/atom.h"
+#include "lv2/atom/forge.h"
+#include "lv2/atom/util.h"
#include "lv2/core/lv2.h"
#include "lv2/core/lv2_util.h"
#include "lv2/log/log.h"
#include "lv2/log/logger.h"
#include "lv2/state/state.h"
+#include "lv2/urid/urid.h"
#include "./uris.h"
diff --git a/plugins/eg-scope.lv2/examploscope_ui.c b/plugins/eg-scope.lv2/examploscope_ui.c
index 85dd95b..1639ae9 100644
--- a/plugins/eg-scope.lv2/examploscope_ui.c
+++ b/plugins/eg-scope.lv2/examploscope_ui.c
@@ -14,13 +14,27 @@
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 "lv2/atom/atom.h"
+#include "lv2/atom/forge.h"
+#include "lv2/atom/util.h"
+#include "lv2/core/lv2.h"
#include "lv2/ui/ui.h"
+#include "lv2/urid/urid.h"
+
#include "./uris.h"
// Drawing area size