/[cvs]/eggdrop1.9/src/logfile.h
ViewVC logotype

Contents of /eggdrop1.9/src/logfile.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.12 - (show annotations) (download) (as text)
Sun Sep 26 09:42:09 2004 UTC (15 years ago) by stdarg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +1 -4 lines
File MIME type: text/x-csrc
* module_load checks modname_LTX_start in addition to start.
* add linked list info to xml nodes
* there were some memory errors somewhere... no idea where... so for now I've changed it back to the old config api and commented out the help system

1 /* logfile.h: header for logfile.c
2 *
3 * Copyright (C) 2002, 2003, 2004 Eggheads Development Team
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
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 General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 *
19 * $Id: logfile.h,v 1.11 2004/06/28 17:36:34 wingman Exp $
20 */
21
22 #ifndef _EGG_LOGILE_H
23 #define _EGG_LOGILE_H
24
25 typedef enum
26 {
27 LOG_STATE_ENABLED = 0,
28 LOG_STATE_DISABLED
29 } logstate_t;
30
31 typedef struct
32 {
33 char *filename;
34 char *chname;
35 int mask;
36
37 logstate_t state;
38 char *fname;
39 char *last_msg;
40 int repeats;
41 int flags;
42 FILE *fp;
43 } logfile_t;
44
45 typedef struct
46 {
47 int keep_all;
48 int quick;
49 int max_size;
50 int switch_at;
51 char *suffix;
52 } logging_t;
53
54 extern void logfile_init(void);
55 extern void logfile_shutdown(void);
56
57 extern char *logfile_add(char *, char *, char *);
58 extern int logfile_del(char *);
59
60 extern void flushlogs();
61
62 #endif /* !_EGG_LOGFILE_H */

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23