aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-06-08 19:34:52 +0000
committerDavid Robillard <d@drobilla.net>2013-06-08 19:34:52 +0000
commit2990d5048d09a9d2c7c96192b7850a79897dccc3 (patch)
tree13f28fe83c950563d36922287b60c555e9ad8eaf
parentb5ff339e2c3dfc8ad4d73c21b6887a58a6c71c9d (diff)
downloadjalv-2990d5048d09a9d2c7c96192b7850a79897dccc3.tar.gz
jalv-2990d5048d09a9d2c7c96192b7850a79897dccc3.tar.bz2
jalv-2990d5048d09a9d2c7c96192b7850a79897dccc3.zip
Nicer printing of atom messages with -d.
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@5126 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--NEWS1
-rw-r--r--src/jalv.c9
2 files changed, 3 insertions, 7 deletions
diff --git a/NEWS b/NEWS
index bb67c12..5bc68b3 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,7 @@ jalv (1.4.1) unstable;
* Fix crash when running "jalv" with bad command line arguments
* Fix potential crash with UIs and debug printing
+ * Nicer printing of atom messages with -d
* Add command-line option to control UI update frequency
* Support rsz:minimumSize for atom and event ports
* Fix default setting for non-sequential enumeration ports
diff --git a/src/jalv.c b/src/jalv.c
index f174eb1..dae9582 100644
--- a/src/jalv.c
+++ b/src/jalv.c
@@ -721,12 +721,9 @@ jalv_ui_write(SuilController controller,
}
if (jalv->opts.dump && protocol == jalv->urids.atom_eventTransfer) {
- SerdNode s = serd_node_from_string(SERD_BLANK, USTR("msg"));
- SerdNode p = serd_node_from_string(SERD_URI, USTR(NS_RDF "value"));
-
const LV2_Atom* atom = (const LV2_Atom*)buffer;
char* str = sratom_to_turtle(
- jalv->sratom, &jalv->unmap, "jalv:", &s, &p,
+ jalv->sratom, &jalv->unmap, "jalv:", NULL, NULL,
atom->type, atom->size, LV2_ATOM_BODY(atom));
printf("\n## UI => Plugin (%u bytes) ##\n%s\n", atom->size, str);
free(str);
@@ -761,11 +758,9 @@ jalv_emit_ui_events(Jalv* jalv)
if (jalv->opts.dump && ev.protocol == jalv->urids.atom_eventTransfer) {
// Dump event in Turtle to the console
- SerdNode s = serd_node_from_string(SERD_BLANK, USTR("msg"));
- SerdNode p = serd_node_from_string(SERD_URI, USTR(NS_RDF "value"));
LV2_Atom* atom = (LV2_Atom*)buf;
char* str = sratom_to_turtle(
- jalv->ui_sratom, &jalv->unmap, "jalv:", &s, &p,
+ jalv->ui_sratom, &jalv->unmap, "jalv:", NULL, NULL,
atom->type, atom->size, LV2_ATOM_BODY(atom));
printf("\n## Plugin => UI (%u bytes) ##\n%s\n", atom->size, str);
free(str);