aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-03-19 17:13:21 +0000
committerDavid Robillard <d@drobilla.net>2012-03-19 17:13:21 +0000
commit8c3d43dab383ccf99899ca295e075c064110d7a4 (patch)
tree4033cac5055dff0762a0142d2892da52616e9d38
parent2bb1e7c375464c8603278923775fbbc3ded9a959 (diff)
downloadjalv-8c3d43dab383ccf99899ca295e075c064110d7a4.tar.gz
jalv-8c3d43dab383ccf99899ca295e075c064110d7a4.tar.bz2
jalv-8c3d43dab383ccf99899ca295e075c064110d7a4.zip
Update for latest atom extension.
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@4077 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/jalv.c2
-rw-r--r--src/lv2_evbuf.c2
-rw-r--r--src/sratom/sratom.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/jalv.c b/src/jalv.c
index ddb52b9..85ef155 100644
--- a/src/jalv.c
+++ b/src/jalv.c
@@ -615,7 +615,7 @@ jalv_emit_ui_events(Jalv* host)
char* str = sratom_to_turtle(
host->sratom, &host->unmap, "jalv:", &s, &p,
atom->type, atom->size, LV2_ATOM_BODY(atom));
- printf("\n## Plugin => UI ##\n%s\n", str);
+ printf("\n## Plugin => UI (%u bytes) ##\n%s\n", atom->size, str);
free(str);
}
diff --git a/src/lv2_evbuf.c b/src/lv2_evbuf.c
index 3037e82..274d120 100644
--- a/src/lv2_evbuf.c
+++ b/src/lv2_evbuf.c
@@ -15,8 +15,8 @@
*/
#include <assert.h>
-#include <string.h>
#include <stdlib.h>
+#include <string.h>
#include "lv2/lv2plug.in/ns/ext/atom/atom.h"
#include "lv2/lv2plug.in/ns/ext/event/event.h"
diff --git a/src/sratom/sratom.c b/src/sratom/sratom.c
index 7c88db0..9cb547c 100644
--- a/src/sratom/sratom.c
+++ b/src/sratom/sratom.c
@@ -473,9 +473,9 @@ read_node(Sratom* sratom,
if (datatype) {
const char* type_uri = (const char*)sord_node_get_string(datatype);
if (!strcmp(type_uri, (char*)NS_XSD "int")) {
- lv2_atom_forge_int32(forge, strtol(str, &endptr, 10));
+ lv2_atom_forge_int(forge, strtol(str, &endptr, 10));
} else if (!strcmp(type_uri, (char*)NS_XSD "long")) {
- lv2_atom_forge_int64(forge, strtol(str, &endptr, 10));
+ lv2_atom_forge_long(forge, strtol(str, &endptr, 10));
} else if (!strcmp(type_uri, (char*)NS_XSD "float")) {
lv2_atom_forge_float(forge, serd_strtod(str, &endptr));
} else if (!strcmp(type_uri, (char*)NS_XSD "double")) {