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:
Stefan Sauer 2016-05-15 23:31:33 -07:00
parent 63afc05c7f
commit b483717322
2 changed files with 6 additions and 9 deletions

View file

@ -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);

View file

@ -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;