summaryrefslogtreecommitdiff
path: root/ext/lv2
diff options
context:
space:
mode:
authorStefan Sauer <ensonic@users.sf.net>2016-05-15 23:31:33 -0700
committerStefan Sauer <ensonic@users.sf.net>2016-05-15 23:31:33 -0700
commitb483717322719f15ae0ad7b81b4b5d00657401d0 (patch)
treefb4ce94c0d4d0d353fc35f88f58d60dca137e70f /ext/lv2
parent63afc05c7fb58c90edf42540b84ae32846bf888b (diff)
downloadgstreamer-plugins-bad-b483717322719f15ae0ad7b81b4b5d00657401d0.tar.gz
lv2: cleanup the predicates
Use the defines from the headers and get rid of our own namespace defines. Replace the 'role' prop with 'designation'.
Diffstat (limited to 'ext/lv2')
-rw-r--r--ext/lv2/gstlv2.c13
-rw-r--r--ext/lv2/gstlv2.h2
2 files changed, 6 insertions, 9 deletions
diff --git a/ext/lv2/gstlv2.c b/ext/lv2/gstlv2.c
index 17a86242a..de8f4bedb 100644
--- a/ext/lv2/gstlv2.c
+++ b/ext/lv2/gstlv2.c
@@ -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);
diff --git a/ext/lv2/gstlv2.h b/ext/lv2/gstlv2.h
index bacfd87dc..340752a93 100644
--- a/ext/lv2/gstlv2.h
+++ b/ext/lv2/gstlv2.h
@@ -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;