XMMS2
src/includepriv/xmmspriv/xmms_sqlite.h
Go to the documentation of this file.
00001 /*  XMMS2 - X Music Multiplexer System
00002  *  Copyright (C) 2003-2011 XMMS2 Team
00003  *
00004  *  PLUGINS ARE NOT CONSIDERED TO BE DERIVED WORK !!!
00005  *
00006  *  This library is free software; you can redistribute it and/or
00007  *  modify it under the terms of the GNU Lesser General Public
00008  *  License as published by the Free Software Foundation; either
00009  *  version 2.1 of the License, or (at your option) any later version.
00010  *
00011  *  This library is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  *  Lesser General Public License for more details.
00015  */
00016 
00017 
00018 
00019 
00020 #ifndef __XMMS_PRIV_SQLITE_H__
00021 #define __XMMS_PRIV_SQLITE_H__
00022 
00023 #include <sqlite3.h>
00024 #include <xmms/xmms_object.h>
00025 
00026 typedef gboolean (*xmms_medialib_row_array_method_t) (xmmsv_t **row, gpointer udata);
00027 typedef gboolean (*xmms_medialib_row_table_method_t) (xmmsv_t *row, gpointer udata);
00028 
00029 sqlite3 *xmms_sqlite_open (void);
00030 gboolean xmms_sqlite_create (gboolean *create);
00031 gboolean xmms_sqlite_query_array (sqlite3 *sql, xmms_medialib_row_array_method_t method, gpointer udata, const gchar *query, ...);
00032 gboolean xmms_sqlite_query_int (sqlite3 *sql, gint32 *r, const gchar *query, ...);
00033 gboolean xmms_sqlite_query_table (sqlite3 *sql, xmms_medialib_row_table_method_t method, gpointer udata, xmms_error_t *error, const gchar *query, ...);
00034 gboolean xmms_sqlite_exec (sqlite3 *sql, const char *query, ...);
00035 void xmms_sqlite_close (sqlite3 *sql);
00036 void xmms_sqlite_print_version (void);
00037 gchar *sqlite_prepare_string (const gchar *input);
00038 
00039 #endif