From 6e771526106e8e1635b462064ad375ecda0b177a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 10 Apr 2012 23:24:39 +0000 Subject: Make controls update when changing presets (except combos). Fix scale point value bug. Fix memory leaks. git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@4158 a436a847-0d15-0410-975c-d299462d15a1 --- src/jalv_internal.h | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) (limited to 'src/jalv_internal.h') diff --git a/src/jalv_internal.h b/src/jalv_internal.h index f2b1b95..50587a6 100644 --- a/src/jalv_internal.h +++ b/src/jalv_internal.h @@ -63,14 +63,15 @@ enum PortType { }; struct Port { - const LilvPort* lilv_port; - enum PortType type; - enum PortFlow flow; - jack_port_t* jack_port; ///< For audio/MIDI ports, otherwise NULL - LV2_Evbuf* evbuf; ///< For MIDI ports, otherwise NULL - uint32_t index; ///< Port index - float control; ///< For control ports, otherwise 0.0f - bool old_api; ///< True for event, false for atom + const LilvPort* lilv_port; + enum PortType type; + enum PortFlow flow; + jack_port_t* jack_port; ///< For audio/MIDI ports, otherwise NULL + LV2_Evbuf* evbuf; ///< For MIDI ports, otherwise NULL + void* widget; ///< Control widget, if applicable + uint32_t index; ///< Port index + float control; ///< For control ports, otherwise 0.0f + bool old_api; ///< True for event, false for atom }; /** @@ -168,7 +169,8 @@ typedef struct { jack_nframes_t event_delta_t; ///< Frames since last update sent to UI uint32_t midi_event_id; ///< MIDI event class ID in event context bool buf_size_set; ///< True iff buffer size callback fired - bool exit; ///< True if execution is finished + bool exit; ///< True iff execution is finished + bool has_ui; ///< True iff a control UI is present } Jalv; int @@ -197,6 +199,13 @@ jalv_ui_write(SuilController controller, uint32_t protocol, const void* buffer); +void +jalv_ui_port_event(Jalv* jalv, + uint32_t port_index, + uint32_t buffer_size, + uint32_t protocol, + const void* buffer); + bool jalv_emit_ui_events(Jalv* jalv); -- cgit v1.2.1