summaryrefslogtreecommitdiffstats
path: root/src/query.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-04-29 16:09:20 +0000
committerDavid Robillard <d@drobilla.net>2011-04-29 16:09:20 +0000
commit22f4ed918d99c17cd3bb8890eeaac173060394bf (patch)
treeb7b2357c1ddffc43a9b70535b59958977cebea39 /src/query.c
parent94e46eab73854967d643b47a7140c2bcbccc0425 (diff)
downloadlilv-22f4ed918d99c17cd3bb8890eeaac173060394bf.tar.gz
lilv-22f4ed918d99c17cd3bb8890eeaac173060394bf.tar.bz2
lilv-22f4ed918d99c17cd3bb8890eeaac173060394bf.zip
Remove LilvNode and LilvMatches typedefs for Sord stuff.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3233 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/query.c')
-rw-r--r--src/query.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/query.c b/src/query.c
index bea8788..c55fe5b 100644
--- a/src/query.c
+++ b/src/query.c
@@ -54,15 +54,15 @@ lilv_lang_matches(const char* a, const char* b)
}
LilvValues*
-lilv_values_from_stream_objects_i18n(LilvWorld* world,
- LilvMatches stream)
+lilv_values_from_stream_objects_i18n(LilvWorld* world,
+ SordIter* stream)
{
- LilvValues* values = lilv_values_new();
- LilvNode nolang = NULL; // Untranslated value
- LilvNode partial = NULL; // Partial language match
- char* syslang = lilv_get_lang();
+ LilvValues* values = lilv_values_new();
+ const SordNode* nolang = NULL; // Untranslated value
+ const SordNode* partial = NULL; // Partial language match
+ char* syslang = lilv_get_lang();
FOREACH_MATCH(stream) {
- LilvNode value = lilv_match_object(stream);
+ const SordNode* value = lilv_match_object(stream);
if (sord_node_get_type(value) == SORD_LITERAL) {
const char* lang = sord_node_get_language(value);
LilvLangMatch lm = LILV_LANG_MATCH_NONE;
@@ -95,7 +95,7 @@ lilv_values_from_stream_objects_i18n(LilvWorld* world,
return values;
}
- LilvNode best = nolang;
+ const SordNode* best = nolang;
if (syslang && partial) {
// Partial language match for system language
best = partial;
@@ -117,8 +117,8 @@ lilv_values_from_stream_objects_i18n(LilvWorld* world,
}
LilvValues*
-lilv_values_from_stream_objects(LilvWorld* world,
- LilvMatches stream)
+lilv_values_from_stream_objects(LilvWorld* world,
+ SordIter* stream)
{
if (lilv_matches_end(stream)) {
lilv_match_end(stream);