From 045daf80b063d7f8ea560583e34d5cd8378fb4b1 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 29 Feb 2012 03:18:26 +0000 Subject: Update for latest atom extension. Dump Jack transport information as an atom:Object. git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@4005 a436a847-0d15-0410-975c-d299462d15a1 --- src/jalv_internal.h | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'src/jalv_internal.h') diff --git a/src/jalv_internal.h b/src/jalv_internal.h index 474da83..07c40b3 100644 --- a/src/jalv_internal.h +++ b/src/jalv_internal.h @@ -28,6 +28,7 @@ #include "suil/suil.h" #include "lv2/lv2plug.in/ns/ext/atom/atom.h" +#include "lv2/lv2plug.in/ns/ext/atom/forge.h" #include "lv2/lv2plug.in/ns/ext/urid/urid.h" #include "lv2/lv2plug.in/ns/ext/state/state.h" @@ -82,6 +83,18 @@ typedef struct { bool dump; } JalvOptions; +typedef struct { + LV2_URID atom_eventTransfer; + LV2_URID time_Position; + LV2_URID time_barBeat; + LV2_URID time_bar; + LV2_URID time_beatUnit; + LV2_URID time_beatsPerBar; + LV2_URID time_beatsPerMinute; + LV2_URID time_frame; + LV2_URID time_speed; +} JalvURIDs; + typedef enum { JALV_RUNNING, JALV_PAUSE_REQUESTED, @@ -90,6 +103,8 @@ typedef enum { typedef struct { JalvOptions opts; ///< Command-line options + JalvURIDs urids; ///< URIDs + LV2_Atom_Forge forge; ///< Atom forge const char* prog_name; ///< Program name (argv[0]) LilvWorld* world; ///< Lilv World int ui_width; ///< Requested UI width @@ -121,14 +136,14 @@ typedef struct { LilvNode* control_class; ///< Control port class (URI) LilvNode* audio_class; ///< Audio port class (URI) LilvNode* event_class; ///< Event port class (URI) + LilvNode* chunk_class; ///< Atom sequence class (URI) LilvNode* seq_class; ///< Atom sequence class (URI) LilvNode* msg_port_class; ///< Atom event port class (URI) LilvNode* midi_class; ///< MIDI event class (URI) LilvNode* preset_class; ///< Preset class (URI) LilvNode* label_pred; ///< rdfs:label LilvNode* optional; ///< lv2:connectionOptional port property - uint32_t midi_event_id; ///< MIDI event class ID - uint32_t atom_prot_id; ///< Atom protocol ID + uint32_t midi_event_id; ///< MIDI event class ID in event context bool buf_size_set; ///< True iff buffer size callback fired } Jalv; -- cgit v1.2.1