SLV2 0.6.6
|
00001 /* SLV2 00002 * Copyright (C) 2008-2009 Dave Robillard <http://drobilla.net> 00003 * 00004 * This library is free software; you can redistribute it and/or modify it 00005 * under the terms of the GNU General Public License as published by the Free 00006 * Software Foundation; either version 2 of the License, or (at your option) 00007 * any later version. 00008 * 00009 * This library is distributed in the hope that it will be useful, but WITHOUT 00010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00011 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00012 * for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License along 00015 * with this program; if not, write to the Free Software Foundation, Inc., 00016 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 00017 */ 00018 00019 #ifndef __SLV2_QUERY_H__ 00020 #define __SLV2_QUERY_H__ 00021 00022 #ifdef __cplusplus 00023 extern "C" { 00024 #endif 00025 00033 SLV2Results 00034 slv2_plugin_query_sparql(SLV2Plugin plugin, 00035 const char* sparql_str); 00036 00037 00040 void 00041 slv2_results_free(SLV2Results results); 00042 00043 00049 unsigned 00050 slv2_results_size(SLV2Results results); 00051 00052 00055 bool 00056 slv2_results_finished(SLV2Results results); 00057 00058 00064 SLV2Value 00065 slv2_results_get_binding_value(SLV2Results results, unsigned index); 00066 00067 00073 SLV2Value 00074 slv2_results_get_binding_value_by_name(SLV2Results results, const char* name); 00075 00076 00081 const char* 00082 slv2_results_get_binding_name(SLV2Results results, unsigned index); 00083 00084 00087 void 00088 slv2_results_next(SLV2Results results); 00089 00090 00093 #ifdef __cplusplus 00094 } /* extern "C" */ 00095 #endif 00096 00097 #endif /* __SLV2_QUERY_H__ */