From 588cc25cc9c80ba8b1aafe5f65746d80f9ef54a5 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 11 Nov 2011 23:10:03 +0000 Subject: Add lilv_plugin_has_extension_data. Add tests for extension data functions. Tolerate (ignore) plugins with broken data with "gaps" in port indices. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3611 a436a847-0d15-0410-975c-d299462d15a1 --- lilv/lilv.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'lilv') diff --git a/lilv/lilv.h b/lilv/lilv.h index d5e0c8f..e748d1d 100644 --- a/lilv/lilv.h +++ b/lilv/lilv.h @@ -786,7 +786,15 @@ LilvNodes* lilv_plugin_get_optional_features(const LilvPlugin* p); /** - Get the extension data implemented by a plugin. + Return whether or not a plugin provides a specific extension data. +*/ +LILV_API +bool +lilv_plugin_has_extension_data(const LilvPlugin* p, + const LilvNode* uri); + +/** + Get a sequence of all extension data provided by a plugin. This can be used to find which URIs lilv_instance_get_extension_data() will return a value for without instantiating the plugin. */ -- cgit v1.2.1