ekg2
|
00001 /* $Id$ */ 00002 00003 /* 00004 * (C) Copyright 2005 Leszek Krupiński <leafnode@wafel.com> 00005 * 00006 * This program is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU Lesser General Public License Version 00008 * 2.1 as published by the Free Software Foundation. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU Lesser General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU Lesser General Public 00016 * License along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00018 */ 00019 00020 00021 #ifndef __LOGSQLITE_H__ 00022 00023 #define __LOGSQLITE_H__ 00024 00025 00026 #ifdef HAVE_SQLITE3 00027 # include <sqlite3.h> 00028 # define sqlite_t sqlite3 00029 #else 00030 # include <sqlite.h> 00031 # define sqlite_t sqlite 00032 #endif 00033 00034 extern char *logsqlite_prepare_path(); 00035 extern QUERY(logsqlite_msg_handler); 00036 extern QUERY(logsqlite_status_handler); 00037 extern int logsqlite_theme_init(); 00038 extern sqlite_t * logsqlite_prepare_db(session_t * session, time_t sent, int mode); 00039 extern sqlite_t * logsqlite_open_db(session_t * session, time_t sent, char * path); 00040 extern void logsqlite_close_db(sqlite_t * db); 00041 extern void logsqlite_setvar_default(); 00042 00043 extern char *config_logsqlite_path; 00044 extern int config_logsqlite_last_in_window; 00045 extern int config_logsqlite_last_open_window; 00046 extern int config_logsqlite_last_limit_msg; 00047 extern int config_logsqlite_last_limit_status; 00048 extern int config_logsqlite_last_print_on_open; 00049 extern int config_logsqlite_log; 00050 extern int config_logsqlite_log_ignored; 00051 extern int config_logsqlite_log_status; 00052 00053 #endif