• Main Page
  • Modules
  • Files
  • File List

query.h

00001 /* SLV2
00002  * Copyright (C) 2008-2009 David 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 SLV2_API
00034 SLV2Results
00035 slv2_plugin_query_sparql(SLV2Plugin  plugin,
00036                          const char* sparql_str);
00037 
00038 
00041 SLV2_API
00042 void
00043 slv2_results_free(SLV2Results results);
00044 
00045 
00051 SLV2_API
00052 unsigned
00053 slv2_results_size(SLV2Results results);
00054 
00055 
00058 SLV2_API
00059 bool
00060 slv2_results_finished(SLV2Results results);
00061 
00062 
00068 SLV2_API
00069 SLV2Value
00070 slv2_results_get_binding_value(SLV2Results results, unsigned index);
00071 
00072 
00078 SLV2_API
00079 SLV2Value
00080 slv2_results_get_binding_value_by_name(SLV2Results results, const char* name);
00081 
00082 
00087 SLV2_API
00088 const char*
00089 slv2_results_get_binding_name(SLV2Results results, unsigned index);
00090 
00091 
00094 SLV2_API
00095 void
00096 slv2_results_next(SLV2Results results);
00097 
00098 
00101 #ifdef __cplusplus
00102 } /* extern "C" */
00103 #endif
00104 
00105 #endif /* __SLV2_QUERY_H__ */

Generated on Fri Sep 3 2010 21:44:10 for SLV2 by  doxygen 1.7.1