aboutsummaryrefslogtreecommitdiffstats
path: root/src/control.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/control.c')
-rw-r--r--src/control.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/control.c b/src/control.c
index 451eac5..19cf3e9 100644
--- a/src/control.c
+++ b/src/control.c
@@ -169,6 +169,19 @@ new_property_control(LilvWorld* const world,
}
void
+free_control(ControlID* const control)
+{
+ lilv_node_free(control->node);
+ lilv_node_free(control->symbol);
+ lilv_node_free(control->label);
+ lilv_node_free(control->group);
+ lilv_node_free(control->min);
+ lilv_node_free(control->max);
+ lilv_node_free(control->def);
+ free(control);
+}
+
+void
add_control(Controls* controls, ControlID* control)
{
ControlID** const new_controls = (ControlID**)realloc(