diff options
author | Hanspeter Portner <dev@open-music-kontrollers.ch> | 2017-09-13 19:17:38 +0200 |
---|---|---|
committer | Hanspeter Portner <dev@open-music-kontrollers.ch> | 2017-09-13 19:17:38 +0200 |
commit | 90462254aa5feaa7debc52438099d3904c9a48cd (patch) | |
tree | 0b894325b5283cc645b5ac8d1c351d7b5796ca91 /include | |
parent | a10320c53b2baaf066ca11bec4a63dc3a8910ce0 (diff) | |
download | synthpod-90462254aa5feaa7debc52438099d3904c9a48cd.tar.xz |
initial working version of inline display.
Diffstat (limited to 'include')
-rw-r--r-- | include/synthpod_private.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/include/synthpod_private.h b/include/synthpod_private.h index 41eb9395..1be70eac 100644 --- a/include/synthpod_private.h +++ b/include/synthpod_private.h @@ -48,6 +48,7 @@ #include <lv2/lv2plug.in/ns/extensions/ui/ui.h> #include <lv2/lv2plug.in/ns/extensions/units/units.h> #include <lv2_external_ui.h> // kxstudio kx-ui extension +#include <lv2_extensions.h> // ardour inline display #include <osc.lv2/osc.h> @@ -362,7 +363,6 @@ struct _reg_t { reg_item_t cpus_available; reg_item_t cpus_used; reg_item_t quit; - reg_item_t wildcard; reg_item_t system_ports; reg_item_t control_port; @@ -394,6 +394,10 @@ struct _reg_t { reg_item_t channel; reg_item_t controller_number; } midi; + + struct { + reg_item_t surface; + } idisp; }; static inline void @@ -635,7 +639,6 @@ sp_regs_init(reg_t *regs, LilvWorld *world, LV2_URID_Map *map) _register(®s->synthpod.cpus_available, world, map, SYNTHPOD_PREFIX"CPUsAvailable"); _register(®s->synthpod.cpus_used, world, map, SYNTHPOD_PREFIX"CPUsUsed"); _register(®s->synthpod.quit, world, map, SYNTHPOD_PREFIX"quit"); - _register(®s->synthpod.wildcard, world, map, SYNTHPOD_PREFIX"wildcard"); _register(®s->synthpod.system_ports, world, map, SYNTHPOD_PREFIX"systemPorts"); _register(®s->synthpod.control_port, world, map, SYNTHPOD_PREFIX"ControlPort"); @@ -664,6 +667,8 @@ sp_regs_init(reg_t *regs, LilvWorld *world, LV2_URID_Map *map) _register(®s->midi.Controller, world, map, LV2_MIDI__Controller); _register(®s->midi.channel, world, map, LV2_MIDI__channel); _register(®s->midi.controller_number, world, map, LV2_MIDI__controllerNumber); + + _register(®s->idisp.surface, world, map, LV2_INLINEDISPLAY_PREFIX"surface"); } static inline void @@ -874,7 +879,6 @@ sp_regs_deinit(reg_t *regs) _unregister(®s->synthpod.cpus_available); _unregister(®s->synthpod.cpus_used); _unregister(®s->synthpod.quit); - _unregister(®s->synthpod.wildcard); _unregister(®s->synthpod.system_ports); _unregister(®s->synthpod.control_port); @@ -903,6 +907,8 @@ sp_regs_deinit(reg_t *regs) _unregister(®s->midi.Controller); _unregister(®s->midi.channel); _unregister(®s->midi.controller_number); + + _unregister(®s->idisp.surface); } #if 0 |