diff options
author | David Robillard <d@drobilla.net> | 2012-03-03 21:44:14 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-03-03 21:44:14 +0000 |
commit | d8849ba15dff011b2b064429ba53668674d488c0 (patch) | |
tree | 137b0e4a4dc9c860aa5ea23a3f91d5148d6bc2d4 /src/lilv_internal.h | |
parent | 6f13e4eba41f19adb6cb3726ee6b384518617053 (diff) | |
download | lilv-d8849ba15dff011b2b064429ba53668674d488c0.tar.gz lilv-d8849ba15dff011b2b064429ba53668674d488c0.tar.bz2 lilv-d8849ba15dff011b2b064429ba53668674d488c0.zip |
Remove pointless wrapper around Sord API.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4020 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/lilv_internal.h')
-rw-r--r-- | src/lilv_internal.h | 48 |
1 files changed, 3 insertions, 45 deletions
diff --git a/src/lilv_internal.h b/src/lilv_internal.h index f292d2a..2ebaa0c 100644 --- a/src/lilv_internal.h +++ b/src/lilv_internal.h @@ -297,51 +297,9 @@ lilv_world_query_values_internal(LilvWorld* world, #define FOREACH_MATCH(iter) \ for (; !sord_iter_end(iter); sord_iter_next(iter)) -static inline const SordNode* -lilv_match_subject(SordIter* iter) { - SordQuad tup; - sord_iter_get(iter, tup); - return tup[SORD_SUBJECT]; -} - -static inline const SordNode* -lilv_match_predicate(SordIter* iter) { - SordQuad tup; - sord_iter_get(iter, tup); - return tup[SORD_PREDICATE]; -} - -static inline const SordNode* -lilv_match_object(SordIter* iter) { - SordQuad tup; - sord_iter_get(iter, tup); - return tup[SORD_OBJECT]; -} - -static inline const SordNode* -lilv_match_graph(SordIter* iter) { - SordQuad tup; - sord_iter_get(iter, tup); - return tup[SORD_GRAPH]; -} - -static inline void -lilv_match_end(SordIter* iter) -{ - sord_iter_free(iter); -} - -static inline bool lilv_matches_next(SordIter* matches) { - return sord_iter_next(matches); -} - -static inline bool lilv_matches_end(SordIter* matches) { - return sord_iter_end(matches); -} - -LilvNodes* lilv_nodes_from_stream_objects(LilvWorld* w, - SordIter* stream, - bool object); +LilvNodes* lilv_nodes_from_stream_objects(LilvWorld* w, + SordIter* stream, + SordQuadIndex field); char* lilv_strjoin(const char* first, ...); char* lilv_strdup(const char* str); |