aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2016-03-17 11:03:55 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2016-03-17 11:03:55 +0100
commit8466b4cd4c3485dfe0190bc1b6ee956521b377e3 (patch)
treea3fc2a46df7f711dbcaebf910064562b0334a302
parent285ae3a610403bd1eca803decc935f32a40e1844 (diff)
downloadmoony.lv2-8466b4cd4c3485dfe0190bc1b6ee956521b377e3.tar.xz
fixes for LV2 1.10.
-rw-r--r--api/api.c4
-rw-r--r--ui/web_ui.c14
2 files changed, 18 insertions, 0 deletions
diff --git a/api/api.c b/api/api.c
index b3110b6..af337f8 100644
--- a/api/api.c
+++ b/api/api.c
@@ -36,6 +36,10 @@
#define RDFS__range RDFS_PREFIX"range"
#define RDFS__comment RDFS_PREFIX"comment"
+#ifndef LV2_PATCH__Copy
+# define LV2_PATCH__Copy LV2_PATCH_PREFIX "Copy"
+#endif
+
static const char *moony_ref [MOONY_UDATA_COUNT] = {
[MOONY_UDATA_ATOM] = "latom",
[MOONY_UDATA_FORGE] = "lforge",
diff --git a/ui/web_ui.c b/ui/web_ui.c
index 26aacf5..c6a6786 100644
--- a/ui/web_ui.c
+++ b/ui/web_ui.c
@@ -39,6 +39,20 @@
#define MAX_PORTS 18
+#ifndef LV2_UI__protocol
+# define LV2_UI__protocol LV2_UI_PREFIX "protocol"
+# define LV2_UI__floatProtocol LV2_UI_PREFIX "floatProtocol"
+# define LV2_UI__peakProtocol LV2_UI_PREFIX "peakProtocol"
+#endif
+
+#ifdef LV2_ATOM_TUPLE_FOREACH
+# undef LV2_ATOM_TUPLE_FOREACH
+# define LV2_ATOM_TUPLE_FOREACH(tuple, iter) \
+ for (LV2_Atom* (iter) = lv2_atom_tuple_begin(tuple); \
+ !lv2_atom_tuple_is_end(LV2_ATOM_BODY(tuple), (tuple)->atom.size, (iter)); \
+ (iter) = lv2_atom_tuple_next(iter))
+#endif
+
typedef struct _UI UI;
typedef struct _server_t server_t;
typedef struct _client_t client_t;