[tracker/libtracker-sparql: 5/55] libtracker-sparql: Add Sparql.Connection interface



commit aeac3c0bc7a0d2015409c98351f02e6228c8a685
Author: Jürg Billeter <j bitron ch>
Date:   Mon Jul 5 18:29:07 2010 +0200

    libtracker-sparql: Add Sparql.Connection interface

 src/libtracker-sparql/Makefile.am             |    1 +
 src/libtracker-sparql/tracker-connection.vala |   22 ++++++++++++++++++++++
 2 files changed, 23 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-sparql/Makefile.am b/src/libtracker-sparql/Makefile.am
index 51a23e9..56f73d2 100644
--- a/src/libtracker-sparql/Makefile.am
+++ b/src/libtracker-sparql/Makefile.am
@@ -5,6 +5,7 @@ lib_LTLIBRARIES = libtracker-sparql- TRACKER_API_VERSION@.la
 libtracker_sparqlincludedir = $(includedir)/tracker-$(TRACKER_API_VERSION)/libtracker-sparql
 
 libtracker_sparql_ TRACKER_API_VERSION@_la_VALASOURCES = \
+	tracker-connection.vala				\
 	tracker-cursor.vala
 
 libtracker_sparql_ TRACKER_API_VERSION@_la_SOURCES = 	\
diff --git a/src/libtracker-sparql/tracker-connection.vala b/src/libtracker-sparql/tracker-connection.vala
new file mode 100644
index 0000000..6fa8bc2
--- /dev/null
+++ b/src/libtracker-sparql/tracker-connection.vala
@@ -0,0 +1,22 @@
+/*
+ * Copyright (C) 2010, Nokia <ivan frade nokia com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA  02110-1301, USA.
+ */
+
+public interface Tracker.Sparql.Connection {
+	public abstract Cursor query (string sparql) throws GLib.Error;
+}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]