ekg2
plugins/logsoracle/main.h
Idź do dokumentacji tego pliku.
00001 /* $Id$ */
00002 
00003 /*
00004  *  (C) Copyright 2006 Szymon Bilinski <ecimon(at)babel.pl>
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 #ifndef __logsoracle_h__
00021 #define __logsoracle_h__
00022 
00023 #define LOGSORACLE_PLUGIN_VERSION       "0.1"
00024 
00025 /*
00026  * Module Configuration
00027  * [These variables are visible via the 'set' command int EKG2] 
00028  */
00029 struct logsoracle_conf_struct {
00030     int auto_connect;           /* VAR_BOOL */
00031     int logging_active;         /* VAR_BOOL */
00032     int log_messages;           /* VAR_BOOL : log sent/incoming messages */
00033     int log_status;             /* VAR_BOOL : log status changes */
00034     char *db_login;             /* VAR_STR */
00035     char *db_password;          /* VAR_STR */
00036 };
00037 
00038 /*
00039  * Statistics
00040  */
00041 struct logsoracle_stat_struct {
00042     int session_message_insert; /* How many messages were added during this logsoracle session (since connect) */
00043     int session_status_insert;  /* Same thing for status changes */
00044 };
00045 
00046 /*
00047  * Declare functions that will process incoming events
00048  */
00049 QUERY(logsoracle_handler_setvarsdef);
00050 QUERY(logsoracle_handler_postinit);
00051 QUERY(logsoracle_handler_newwin);
00052 QUERY(logsoracle_handler_killwin);
00053 QUERY(logsoracle_handler_sestatus);
00054 QUERY(logsoracle_handler_prstatus);
00055 QUERY(logsoracle_handler_prmsg);
00056 
00057 /*
00058  * Statistics
00059  */
00060 void logsoracle_stat_clear();
00061 int  logsoracle_stat_get_message();
00062 int  logsoracle_stat_get_status();
00063 
00064 #endif
00065 
 All Struktury Danych Pliki Funkcje Zmienne Definicje typów Wyliczenia Wartości wyliczeń Definicje