From 4d2cf9582ba6c5e9cdb29b07427934b2f1e0ef02 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 5 Mar 2010 20:11:04 +0000 Subject: 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 --- slv2/query.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'slv2/query.h') 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); -- cgit v1.2.1