ekg2  GIT master
main.h
Idź do dokumentacji tego pliku.
1 /* $Id$ */
2 
3 /*
4  * (C) Copyright 2006 Szymon Bilinski <ecimon(at)babel.pl>
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 #ifndef __logsoracle_h__
21 #define __logsoracle_h__
22 
23 #define LOGSORACLE_PLUGIN_VERSION "0.1"
24 
25 /*
26  * Module Configuration
27  * [These variables are visible via the 'set' command int EKG2]
28  */
30  int auto_connect; /* VAR_BOOL */
31  int logging_active; /* VAR_BOOL */
32  int log_messages; /* VAR_BOOL : log sent/incoming messages */
33  int log_status; /* VAR_BOOL : log status changes */
34  char *db_login; /* VAR_STR */
35  char *db_password; /* VAR_STR */
36 };
37 
38 /*
39  * Statistics
40  */
42  int session_message_insert; /* How many messages were added during this logsoracle session (since connect) */
43  int session_status_insert; /* Same thing for status changes */
44 };
45 
46 /*
47  * Declare functions that will process incoming events
48  */
51 QUERY(logsoracle_handler_newwin);
52 QUERY(logsoracle_handler_killwin);
56 
57 /*
58  * Statistics
59  */
63 
64 #endif
65 
QUERY(logsoracle_handler_setvarsdef)
int logsoracle_handler_sestatus(void *data, va_list ap)
Definition: main.c:157
char * db_login
Definition: main.h:34
Definition: main.h:29
int session_message_insert
Definition: main.h:42
int logsoracle_handler_postinit(void *data, va_list ap)
Definition: main.c:139
int auto_connect
Definition: main.h:30
int logging_active
Definition: main.h:31
Definition: main.h:41
int log_status
Definition: main.h:33
int logsoracle_handler_setvarsdef(void *data, va_list ap)
Definition: main.c:122
int logsoracle_stat_get_message()
Definition: main.c:320
int log_messages
Definition: main.h:32
void logsoracle_stat_clear()
Definition: main.c:305
char * db_password
Definition: main.h:35
int logsoracle_handler_prmsg(void *data, va_list ap)
Definition: main.c:252
int logsoracle_stat_get_status()
Definition: main.c:325
int session_status_insert
Definition: main.h:43
int logsoracle_handler_prstatus(void *data, va_list ap)
Definition: main.c:195