ekg2
Strona główna
Dodatkowe strony
Moduły
Struktury Danych
Pliki
Lista plików
Globalne
All
Struktury Danych
Pliki
Funkcje
Zmienne
Definicje typów
Wyliczenia
Wartości wyliczeń
Definicje
Grupay
Strony
plugins
logsoracle
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
*/
29
struct
logsoracle_conf_struct
{
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
*/
41
struct
logsoracle_stat_struct
{
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
*/
49
QUERY
(
logsoracle_handler_setvarsdef
);
50
QUERY
(
logsoracle_handler_postinit
);
51
QUERY
(
logsoracle_handler_newwin
);
52
QUERY
(
logsoracle_handler_killwin
);
53
QUERY
(
logsoracle_handler_sestatus
);
54
QUERY
(
logsoracle_handler_prstatus
);
55
QUERY
(
logsoracle_handler_prmsg
);
56
57
/*
58
* Statistics
59
*/
60
void
logsoracle_stat_clear
();
61
int
logsoracle_stat_get_message
();
62
int
logsoracle_stat_get_status
();
63
64
#endif
65
Wygenerowano N, 10 lut 2013 05:08:19 dla ekg2 programem
1.8.3.1