diff options
Diffstat (limited to 'slv2')
-rw-r--r-- | slv2/plugin.h | 14 | ||||
-rw-r--r-- | slv2/port.h | 10 |
2 files changed, 23 insertions, 1 deletions
diff --git a/slv2/plugin.h b/slv2/plugin.h index 39fd2c5..8980f2e 100644 --- a/slv2/plugin.h +++ b/slv2/plugin.h @@ -178,6 +178,18 @@ 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. + */ +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: @@ -200,7 +212,7 @@ slv2_plugin_get_value_by_qname(SLV2Plugin p, SLV2Values slv2_plugin_get_value_for_subject(SLV2Plugin p, SLV2Value subject_uri, - SLV2Value predicate_uri); + SLV2Value predicate_uri); /** Return whether a feature is supported by a plugin. diff --git a/slv2/port.h b/slv2/port.h index b064b24..5dbe454 100644 --- a/slv2/port.h +++ b/slv2/port.h @@ -53,6 +53,16 @@ slv2_port_get_value_by_qname(SLV2Plugin plugin, const char* property_uri); +/** Port analog of slv2_plugin_get_value_by_qname_i18n. + * + * Time = Query + */ +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 |