aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-03-25 03:05:52 +0000
committerDavid Robillard <d@drobilla.net>2012-03-25 03:05:52 +0000
commit2ffc190204123d550da6f34092763cfb37ea8eeb (patch)
tree5a195c5f62f1f3da4fe648f338fbf4cf9527c900
parent983a606d5b78208d9637756c922131c9e77e58d1 (diff)
downloadjalv-2ffc190204123d550da6f34092763cfb37ea8eeb.tar.gz
jalv-2ffc190204123d550da6f34092763cfb37ea8eeb.tar.bz2
jalv-2ffc190204123d550da6f34092763cfb37ea8eeb.zip
Update for latest atom extension.
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@4104 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/jalv.c28
-rw-r--r--src/jalv_internal.h2
2 files changed, 15 insertions, 15 deletions
diff --git a/src/jalv.c b/src/jalv.c
index dc4cbee..9ae23e4 100644
--- a/src/jalv.c
+++ b/src/jalv.c
@@ -159,7 +159,7 @@ create_port(Jalv* host,
port->type = TYPE_EVENT;
port->old_api = true;
} else if (lilv_port_is_a(host->plugin, port->lilv_port,
- host->msg_port_class)) {
+ host->atom_port_class)) {
port->type = TYPE_EVENT;
port->old_api = false;
} else if (!optional) {
@@ -759,19 +759,19 @@ main(int argc, char** argv)
const LilvPlugins* plugins = lilv_world_get_all_plugins(world);
/* Set up the port classes this app supports */
- host.input_class = lilv_new_uri(world, LILV_URI_INPUT_PORT);
- host.output_class = lilv_new_uri(world, LILV_URI_OUTPUT_PORT);
- host.control_class = lilv_new_uri(world, LILV_URI_CONTROL_PORT);
- host.audio_class = lilv_new_uri(world, LILV_URI_AUDIO_PORT);
- host.event_class = lilv_new_uri(world, LILV_URI_EVENT_PORT);
- host.chunk_class = lilv_new_uri(world, LV2_ATOM__Chunk);
- host.seq_class = lilv_new_uri(world, LV2_ATOM__Sequence);
- host.msg_port_class = lilv_new_uri(world, LV2_ATOM__MessagePort);
- host.midi_class = lilv_new_uri(world, LILV_URI_MIDI_EVENT);
- host.preset_class = lilv_new_uri(world, NS_PSET "Preset");
- host.label_pred = lilv_new_uri(world, LILV_NS_RDFS "label");
- host.work_schedule = lilv_new_uri(world, LV2_WORKER__schedule);
- host.optional = lilv_new_uri(world, LILV_NS_LV2
+ host.input_class = lilv_new_uri(world, LILV_URI_INPUT_PORT);
+ host.output_class = lilv_new_uri(world, LILV_URI_OUTPUT_PORT);
+ host.control_class = lilv_new_uri(world, LILV_URI_CONTROL_PORT);
+ host.audio_class = lilv_new_uri(world, LILV_URI_AUDIO_PORT);
+ host.event_class = lilv_new_uri(world, LILV_URI_EVENT_PORT);
+ host.chunk_class = lilv_new_uri(world, LV2_ATOM__Chunk);
+ host.seq_class = lilv_new_uri(world, LV2_ATOM__Sequence);
+ host.atom_port_class = lilv_new_uri(world, LV2_ATOM__AtomPort);
+ host.midi_class = lilv_new_uri(world, LILV_URI_MIDI_EVENT);
+ host.preset_class = lilv_new_uri(world, NS_PSET "Preset");
+ host.label_pred = lilv_new_uri(world, LILV_NS_RDFS "label");
+ host.work_schedule = lilv_new_uri(world, LV2_WORKER__schedule);
+ host.optional = lilv_new_uri(world, LILV_NS_LV2
"connectionOptional");
/* Get plugin URI from loaded state or command line */
diff --git a/src/jalv_internal.h b/src/jalv_internal.h
index 6bbc291..c54c987 100644
--- a/src/jalv_internal.h
+++ b/src/jalv_internal.h
@@ -151,7 +151,7 @@ typedef struct {
LilvNode* input_class; ///< Input port class (URI)
LilvNode* label_pred; ///< rdfs:label
LilvNode* midi_class; ///< MIDI event class (URI)
- LilvNode* msg_port_class; ///< Atom event port class (URI)
+ LilvNode* atom_port_class; ///< Atom event port class (URI)
LilvNode* optional; ///< lv2:connectionOptional port property
LilvNode* output_class; ///< Output port class (URI)
LilvNode* preset_class; ///< Preset class (URI)