1/* Reusable SQLite3 wrapper functions
2 *
3 * Project : minidlna
4 * Website : http://sourceforge.net/projects/minidlna/
5 * Author  : Justin Maggard
6 * Copyright (c) 2008-2009 Justin Maggard
7 * This software is subject to the conditions detailed in the
8 * LICENCE file provided in this distribution.
9 * */
10#ifndef __SQL_H__
11#define __SQL_H__
12
13#include <sqlite3.h>
14
15int
16sql_exec(sqlite3 *db, const char *fmt, ...);
17
18int
19sql_get_table(sqlite3 *db, const char *zSql, char ***pazResult, int *pnRow, int *pnColumn);
20
21int
22sql_get_int_field(sqlite3 *db, const char *fmt, ...);
23
24#endif
25