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

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

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


Revision 1.8 - (show annotations) (download) (as text)
Mon Jun 21 19:04:51 2004 UTC (14 years, 10 months ago) by stdarg
Branch: MAIN
Changes since 1.7: +2 -1 lines
File MIME type: text/x-csrc
* Trying a simpler method of forking into the background.
* Trying a lockfile approach -- seems to work well so far.

1 /* core_config.h: header for core_config.c
2 *
3 * Copyright (C) 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: core_config.h,v 1.7 2004/01/11 12:02:38 stdarg Exp $
20 */
21
22 #ifndef _EGG_CORE_CONFIG_H_
23 #define _EGG_CORE_CONFIG_H_
24
25 typedef struct {
26 /* General bot stuff. */
27 char *botname; /* Name of the bot as seen by user. */
28 char *userfile; /* File we store users in. */
29 char *lockfile; /* To make sure only one instance runs. */
30
31 /* Owner stuff. */
32 char *owner;
33 char *admin;
34
35 /* Paths. */
36 char *help_path;
37 char *temp_path;
38 char *text_path;
39 char *module_path;
40
41 /* Logfile. */
42 char *logfile_suffix;
43 int max_logsize;
44 int switch_logfiles_at;
45 int keep_all_logs;
46 int quick_logs;
47
48 /* Info to display in whois command. */
49 char *whois_items;
50
51 /* Other. */
52 int die_on_sigterm;
53 } core_config_t;
54
55 extern core_config_t core_config;
56
57 void core_config_init(const char *);
58 void core_config_save();
59
60 #endif /* !_EGG_CORE_CONFIG_H_ */

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23