diff options
Diffstat (limited to 'slv2')
-rw-r--r-- | slv2/plugin.h | 12 | ||||
-rw-r--r-- | slv2/port.h | 10 | ||||
-rw-r--r-- | slv2/world.h | 9 |
3 files changed, 9 insertions, 22 deletions
diff --git a/slv2/plugin.h b/slv2/plugin.h index e94b4f3..e936bf4 100644 --- a/slv2/plugin.h +++ b/slv2/plugin.h @@ -178,18 +178,6 @@ SLV2Values slv2_plugin_get_value_by_qname(SLV2Plugin p, const char* predicate); -/** Get a translated value associated with the plugin in a plugin's data files. - * - * This function is identical to slv2_plugin_get_value, but takes a QName - * string parameter for a predicate instead of an SLV2Value, which may be - * more convenient. It returns the value translated to the current language - * if possible. - */ -SLV2_API -SLV2Values -slv2_plugin_get_value_by_qname_i18n(SLV2Plugin p, - const char* predicate); - /** Get a value associated with some subject in a plugin's data files. * * Returns the ?object of all triples found of the form: diff --git a/slv2/port.h b/slv2/port.h index 0f3f2da..de34946 100644 --- a/slv2/port.h +++ b/slv2/port.h @@ -52,16 +52,6 @@ slv2_port_get_value_by_qname(SLV2Plugin plugin, SLV2Port port, const char* property_uri); -/** Port analog of slv2_plugin_get_value_by_qname_i18n. - * - * Time = Query - */ -SLV2_API -SLV2Values -slv2_port_get_value_by_qname_i18n(SLV2Plugin plugin, - SLV2Port port, - const char* property_uri); - /** Return the LV2 port properties of a port. * * Time = Query diff --git a/slv2/world.h b/slv2/world.h index de3bf04..15dddf8 100644 --- a/slv2/world.h +++ b/slv2/world.h @@ -52,6 +52,15 @@ SLV2_API SLV2World slv2_world_new(void); +/** Enable/disable language filtering for @a world. + * With filtering enabled, SLV2 will automatically return the best value(s) + * for the current LANG. With filtering disabled, all matching values will + * be returned regardless of language tag. Filtering is enabled by default. + */ +SLV2_API +void +slv2_world_filter_language(SLV2World world, bool filter); + /** Destroy the world, mwahaha. * * NB: Destroying the world will leave dangling references in any plugin lists, |