aboutsummaryrefslogtreecommitdiffstats
path: root/src/jalv_internal.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-02-29 03:18:26 +0000
committerDavid Robillard <d@drobilla.net>2012-02-29 03:18:26 +0000
commit045daf80b063d7f8ea560583e34d5cd8378fb4b1 (patch)
tree698c08acf704eda76fc30274834b97b5b27b9888 /src/jalv_internal.h
parent574cb313ce5c2c60976fd243e212529ce86b566b (diff)
downloadjalv-045daf80b063d7f8ea560583e34d5cd8378fb4b1.tar.gz
jalv-045daf80b063d7f8ea560583e34d5cd8378fb4b1.tar.bz2
jalv-045daf80b063d7f8ea560583e34d5cd8378fb4b1.zip
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
Diffstat (limited to 'src/jalv_internal.h')
-rw-r--r--src/jalv_internal.h19
1 files changed, 17 insertions, 2 deletions
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;