/[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.9 - (show annotations) (download) (as text)
Wed Jun 23 17:24:43 2004 UTC (14 years, 10 months ago) by wingman
Branch: MAIN
Changes since 1.8: +3 -3 lines
File MIME type: text/x-csrc
* Added xml_save_str to save xml_node_t into a char *

* Made xml reader more spec compliant and a first start of error handling.
  Now at least we handle some xml errors. Prior you just got "Error while
  loading config file.".

* Added top level elements to config.xml and users.xml.

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.8 2004/06/21 19:04:51 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 int core_config_init(const char *);
58 int core_config_save(void);
59
60 #endif /* !_EGG_CORE_CONFIG_H_ */

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23