From 2ffc190204123d550da6f34092763cfb37ea8eeb Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 25 Mar 2012 03:05:52 +0000 Subject: Update for latest atom extension. git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@4104 a436a847-0d15-0410-975c-d299462d15a1 --- src/jalv.c | 28 ++++++++++++++-------------- src/jalv_internal.h | 2 +- 2 files changed, 15 insertions(+), 15 deletions(-) (limited to 'src') 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) -- cgit v1.2.1