diff options
author | David Robillard <d@drobilla.net> | 2022-05-30 18:34:07 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-08-17 13:50:22 -0400 |
commit | 0133dc3e000496fb0667c7548f1404958b6eeca5 (patch) | |
tree | 379d82ee876fd8192bf96add8a84ebe67443a130 /src/control.h | |
parent | b58430c852867ab546cd3644765e33813e1aa5bb (diff) | |
download | jalv-0133dc3e000496fb0667c7548f1404958b6eeca5.tar.gz jalv-0133dc3e000496fb0667c7548f1404958b6eeca5.tar.bz2 jalv-0133dc3e000496fb0667c7548f1404958b6eeca5.zip |
Remove Jalv back pointer from ControlID
Bit of a kludge, but this unblocks further cleanup and modularization. The Gtk
static data / signal issues can be addressed later.
Diffstat (limited to 'src/control.h')
-rw-r--r-- | src/control.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/control.h b/src/control.h index 0442599..609d75a 100644 --- a/src/control.h +++ b/src/control.h @@ -7,6 +7,7 @@ #include "jalv_internal.h" #include "lilv/lilv.h" +#include "lv2/atom/forge.h" #include "lv2/urid/urid.h" #include <stdint.h> @@ -22,10 +23,20 @@ int scale_point_cmp(const ScalePoint* a, const ScalePoint* b); ControlID* -new_port_control(Jalv* jalv, uint32_t index); +new_port_control(LilvWorld* world, + const LilvPlugin* plugin, + const LilvPort* port, + uint32_t port_index, + float sample_rate, + const JalvNodes* nodes, + LV2_Atom_Forge* forge); ControlID* -new_property_control(Jalv* jalv, const LilvNode* property); +new_property_control(LilvWorld* world, + const LilvNode* property, + const JalvNodes* nodes, + LV2_URID_Map* map, + LV2_Atom_Forge* forge); void add_control(Controls* controls, ControlID* control); |