diff options
author | David Robillard <d@drobilla.net> | 2011-12-16 04:59:14 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-12-16 04:59:14 +0000 |
commit | b8eb516e97042ca9559aaa506becf504180df0a8 (patch) | |
tree | 26fdb669e20b70b9927c1bd62723c48b6947dddc /src/collections.c | |
parent | 3af74220b27e5b5b2bfa7061eb773d0a563d2600 (diff) | |
download | lilv-b8eb516e97042ca9559aaa506becf504180df0a8.tar.gz lilv-b8eb516e97042ca9559aaa506becf504180df0a8.tar.bz2 lilv-b8eb516e97042ca9559aaa506becf504180df0a8.zip |
Fix lilv_world_find_nodes to work with wildcard subjects.
Add lilv_plugin_get_related to get resources related to plugins that
are not directly rdfs:seeAlso linked (e.g. presets).
Add lilv_world_load_resource for related resources (e.g. presets).
Print presets in lv2info.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3877 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/collections.c')
-rw-r--r-- | src/collections.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/collections.c b/src/collections.c index e057c6f..77917f6 100644 --- a/src/collections.c +++ b/src/collections.c @@ -22,6 +22,14 @@ lilv_ptr_cmp(const void* a, const void* b, void* user_data) return (intptr_t)a - (intptr_t)b; } +int +lilv_resource_node_cmp(const void* a, const void* b, void* user_data) +{ + const SordNode* an = ((LilvNode*)a)->val.uri_val; + const SordNode* bn = ((LilvNode*)a)->val.uri_val; + return (intptr_t)an - (intptr_t)bn; +} + /* Generic collection functions */ static inline LilvCollection* |