summaryrefslogtreecommitdiffstats
path: root/src/slv2_internal.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-01-30 05:28:32 +0000
committerDavid Robillard <d@drobilla.net>2011-01-30 05:28:32 +0000
commitc5f3bb2fa81d443c3475c0df2b9e6f14d02f2cc8 (patch)
tree2c26bc1218d852b8b5196116d40c17e8fbd5d3a5 /src/slv2_internal.h
parent73d4c34f7756a36c078a11c639328a7eef474ecb (diff)
downloadlilv-c5f3bb2fa81d443c3475c0df2b9e6f14d02f2cc8.tar.gz
lilv-c5f3bb2fa81d443c3475c0df2b9e6f14d02f2cc8.tar.bz2
lilv-c5f3bb2fa81d443c3475c0df2b9e6f14d02f2cc8.zip
Wrap stream iteration in macros.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2869 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/slv2_internal.h')
-rw-r--r--src/slv2_internal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/slv2_internal.h b/src/slv2_internal.h
index 45d3fc7..590c143 100644
--- a/src/slv2_internal.h
+++ b/src/slv2_internal.h
@@ -43,6 +43,11 @@ extern "C" {
#define SLV2_NS_XSD (const uint8_t*)"http://www.w3.org/2001/XMLSchema#"
#define SLV2_NS_RDF (const uint8_t*)"http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+#define FOREACH_MATCH(stream) \
+ for (; !librdf_stream_end(stream); librdf_stream_next(stream))
+
+#define END_MATCH(stream) librdf_free_stream(stream)
+
/* ********* PORT ********* */
/** Reference to a port on some plugin. */