diff options
author | David Robillard <d@drobilla.net> | 2012-04-10 23:24:39 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-04-10 23:24:39 +0000 |
commit | 6e771526106e8e1635b462064ad375ecda0b177a (patch) | |
tree | 333f19b42938174a9f6de284b3df3e314ca8b26a /src/jalv_internal.h | |
parent | 34b66b65a9c212bc13d62fdfbfcd4be198141e0f (diff) | |
download | jalv-6e771526106e8e1635b462064ad375ecda0b177a.tar.gz jalv-6e771526106e8e1635b462064ad375ecda0b177a.tar.bz2 jalv-6e771526106e8e1635b462064ad375ecda0b177a.zip |
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
Diffstat (limited to 'src/jalv_internal.h')
-rw-r--r-- | src/jalv_internal.h | 27 |
1 files changed, 18 insertions, 9 deletions
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); |