aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2017-04-20 00:03:20 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2017-04-20 00:03:20 +0200
commitd168514d171793fba9244dc681a52f708669f891 (patch)
tree0f4f0b4da3ee16c6605e35af9db8cd99baf467a9 /include
parent3b54f373850d4f8f664e7b9026e0f9fad862426d (diff)
downloadsynthpod-d168514d171793fba9244dc681a52f708669f891.tar.xz
nk: prototype port connections.
Diffstat (limited to 'include')
-rw-r--r--include/synthpod_private.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/synthpod_private.h b/include/synthpod_private.h
index 7809caa3..e2d3fdea 100644
--- a/include/synthpod_private.h
+++ b/include/synthpod_private.h
@@ -371,6 +371,12 @@ struct _reg_t {
reg_item_t midi_port;
reg_item_t osc_port;
reg_item_t com_port;
+
+ reg_item_t connection_list;
+ reg_item_t connection_source_module;
+ reg_item_t connection_source_symbol;
+ reg_item_t connection_sink_module;
+ reg_item_t connection_sink_symbol;
} synthpod;
};
@@ -622,6 +628,12 @@ sp_regs_init(reg_t *regs, LilvWorld *world, LV2_URID_Map *map)
_register(&regs->synthpod.midi_port, world, map, SYNTHPOD_PREFIX"MIDIPort");
_register(&regs->synthpod.osc_port, world, map, SYNTHPOD_PREFIX"OSCPort");
_register(&regs->synthpod.com_port, world, map, SYNTHPOD_PREFIX"ComPort");
+
+ _register(&regs->synthpod.connection_list, world, map, SYNTHPOD_PREFIX"connectionList");
+ _register(&regs->synthpod.connection_source_module, world, map, SYNTHPOD_PREFIX"connectionSourceModule");
+ _register(&regs->synthpod.connection_source_symbol, world, map, SYNTHPOD_PREFIX"connectionSourceSymbol");
+ _register(&regs->synthpod.connection_sink_module, world, map, SYNTHPOD_PREFIX"connectionSinkModule");
+ _register(&regs->synthpod.connection_sink_symbol, world, map, SYNTHPOD_PREFIX"connectionSinkSymbol");
}
static inline void
@@ -841,6 +853,12 @@ sp_regs_deinit(reg_t *regs)
_unregister(&regs->synthpod.midi_port);
_unregister(&regs->synthpod.osc_port);
_unregister(&regs->synthpod.com_port);
+
+ _unregister(&regs->synthpod.connection_list);
+ _unregister(&regs->synthpod.connection_source_module);
+ _unregister(&regs->synthpod.connection_source_symbol);
+ _unregister(&regs->synthpod.connection_sink_module);
+ _unregister(&regs->synthpod.connection_sink_symbol);
}
#define _ATOM_ALIGNED __attribute__((aligned(8)))