mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 13:06:23 +00:00
lv2: cleanup the predicates
Use the defines from the headers and get rid of our own namespace defines. Replace the 'role' prop with 'designation'.
This commit is contained in:
parent
63afc05c7f
commit
b483717322
2 changed files with 6 additions and 9 deletions
|
@ -203,14 +203,11 @@ plugin_init (GstPlugin * plugin)
|
|||
input_class = lilv_new_uri (world, LILV_URI_INPUT_PORT);
|
||||
output_class = lilv_new_uri (world, LILV_URI_OUTPUT_PORT);
|
||||
|
||||
#define NS_LV2 "http://lv2plug.in/ns/lv2core#"
|
||||
#define NS_PG "http://lv2plug.in/ns/ext/port-groups#"
|
||||
|
||||
integer_prop = lilv_new_uri (world, NS_LV2 "integer");
|
||||
toggled_prop = lilv_new_uri (world, NS_LV2 "toggled");
|
||||
in_place_broken_pred = lilv_new_uri (world, NS_LV2 "inPlaceBroken");
|
||||
integer_prop = lilv_new_uri (world, LV2_CORE__integer);
|
||||
toggled_prop = lilv_new_uri (world, LV2_CORE__toggled);
|
||||
designation_pred = lilv_new_uri (world, LV2_CORE__designation);
|
||||
in_place_broken_pred = lilv_new_uri (world, LV2_CORE__inPlaceBroken);
|
||||
group_pred = lilv_new_uri (world, LV2_PORT_GROUPS__group);
|
||||
has_role_pred = lilv_new_uri (world, NS_PG "role");
|
||||
|
||||
center_role = lilv_new_uri (world, LV2_PORT_GROUPS__center);
|
||||
left_role = lilv_new_uri (world, LV2_PORT_GROUPS__left);
|
||||
|
@ -285,9 +282,9 @@ __attribute__ ((destructor))
|
|||
|
||||
lilv_node_free (integer_prop);
|
||||
lilv_node_free (toggled_prop);
|
||||
lilv_node_free (designation_pred);
|
||||
lilv_node_free (in_place_broken_pred);
|
||||
lilv_node_free (group_pred);
|
||||
lilv_node_free (has_role_pred);
|
||||
|
||||
lilv_node_free (center_role);
|
||||
lilv_node_free (left_role);
|
||||
|
|
|
@ -35,9 +35,9 @@ LilvNode *input_class;
|
|||
LilvNode *output_class;
|
||||
LilvNode *integer_prop;
|
||||
LilvNode *toggled_prop;
|
||||
LilvNode *designation_pred;
|
||||
LilvNode *in_place_broken_pred;
|
||||
LilvNode *group_pred;
|
||||
LilvNode *has_role_pred;
|
||||
|
||||
LilvNode *center_role;
|
||||
LilvNode *left_role;
|
||||
|
|
Loading…
Reference in a new issue