From 2bb30b516903c8004bd86c16d9ed17be98ec0e7d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 16 Sep 2016 14:49:49 -0700 Subject: Add lilv_world_get_symbol() --- lilv/lilv.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lilv') diff --git a/lilv/lilv.h b/lilv/lilv.h index 1808194..bb2f127 100644 --- a/lilv/lilv.h +++ b/lilv/lilv.h @@ -707,6 +707,16 @@ lilv_world_ask(LilvWorld* world, const LilvNode* predicate, const LilvNode* object); +/** + Get an LV2 symbol for some subject. + + This will return the lv2:symbol property of the subject if it is given + explicitly, and otherwise will attempt to derive a symbol from the URI. + @return A string node that is a valid LV2 symbol, or NULL on error. +*/ +LILV_API LilvNode* +lilv_world_get_symbol(LilvWorld* world, const LilvNode* subject); + /** @} @name Plugin -- cgit v1.2.1