summaryrefslogtreecommitdiffstats
path: root/slv2/query.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-03-05 20:11:04 +0000
committerDavid Robillard <d@drobilla.net>2010-03-05 20:11:04 +0000
commit4d2cf9582ba6c5e9cdb29b07427934b2f1e0ef02 (patch)
tree0fe2c738a54718ae1c5dc3d5a905308b58fe69d0 /slv2/query.h
parentd8437709d6f69b4952993a6794313edb38361a53 (diff)
downloadlilv-4d2cf9582ba6c5e9cdb29b07427934b2f1e0ef02.tar.gz
lilv-4d2cf9582ba6c5e9cdb29b07427934b2f1e0ef02.tar.bz2
lilv-4d2cf9582ba6c5e9cdb29b07427934b2f1e0ef02.zip
Hide symbols by default and explicitly export API (clean ABI).
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2530 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'slv2/query.h')
-rw-r--r--slv2/query.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/slv2/query.h b/slv2/query.h
index 61b266b..619b902 100644
--- a/slv2/query.h
+++ b/slv2/query.h
@@ -30,6 +30,7 @@ extern "C" {
/** Query a plugin with an arbitrary SPARQL string.
*/
+SLV2_API
SLV2Results
slv2_plugin_query_sparql(SLV2Plugin plugin,
const char* sparql_str);
@@ -37,6 +38,7 @@ slv2_plugin_query_sparql(SLV2Plugin plugin,
/** Free query results.
*/
+SLV2_API
void
slv2_results_free(SLV2Results results);
@@ -46,12 +48,14 @@ slv2_results_free(SLV2Results results);
* iterate to the end of \a results and rewinding is impossible).
* Instead, use slv2_results_next and slv2_results_finished repeatedly.
*/
+SLV2_API
unsigned
slv2_results_size(SLV2Results results);
/** Return true iff the end of \a results has been reached.
*/
+SLV2_API
bool
slv2_results_finished(SLV2Results results);
@@ -61,6 +65,7 @@ slv2_results_finished(SLV2Results results);
* Returned value must be freed by caller with slv2_value_free.
* \return NULL if binding value can not be expressed as an SLV2Value.
*/
+SLV2_API
SLV2Value
slv2_results_get_binding_value(SLV2Results results, unsigned index);
@@ -70,6 +75,7 @@ slv2_results_get_binding_value(SLV2Results results, unsigned index);
* Returned value must be freed by caller with slv2_value_free.
* \return NULL if binding value can not be expressed as an SLV2Value.
*/
+SLV2_API
SLV2Value
slv2_results_get_binding_value_by_name(SLV2Results results, const char* name);
@@ -78,12 +84,14 @@ slv2_results_get_binding_value_by_name(SLV2Results results, const char* name);
* Returned value is shared and must not be freed by caller.
* Indices correspond to selected variables in the query in order of appearance.
*/
+SLV2_API
const char*
slv2_results_get_binding_name(SLV2Results results, unsigned index);
/** Increment \a results to the next match.
*/
+SLV2_API
void
slv2_results_next(SLV2Results results);