ekg2
 All Struktury Danych Pliki Funkcje Zmienne Definicje typów Wyliczenia Wartości wyliczeń Definicje Grupay Strony
logsqlite.h
Idź do dokumentacji tego pliku.
1 /* $Id$ */
2 
3 /*
4  * (C) Copyright 2005 Leszek Krupiński <leafnode@wafel.com>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU Lesser General Public License Version
8  * 2.1 as published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this program; if not, write to the Free Software
17  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18  */
19 
20 
21 #ifndef __LOGSQLITE_H__
22 
23 #define __LOGSQLITE_H__
24 
25 
26 #ifdef HAVE_SQLITE3
27 # include <sqlite3.h>
28 # define sqlite_t sqlite3
29 #else
30 # include <sqlite.h>
31 # define sqlite_t sqlite
32 #endif
33 
34 extern char *logsqlite_prepare_path();
37 extern int logsqlite_theme_init();
38 extern sqlite_t * logsqlite_prepare_db(session_t * session, time_t sent, int mode);
39 extern sqlite_t * logsqlite_open_db(session_t * session, time_t sent, char * path);
40 extern void logsqlite_close_db(sqlite_t * db);
41 extern void logsqlite_setvar_default();
42 
43 extern char *config_logsqlite_path;
49 extern int config_logsqlite_log;
52 
53 #endif