/[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.10 - (show annotations) (download) (as text)
Mon Jun 28 17:36:34 2004 UTC (14 years, 8 months ago) by wingman
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +6 -7 lines
File MIME type: text/x-csrc
* Added new datatype variant: supports common task of having one
  data structure supporting different types (int, bool, string, timestamp)

* Added a more fine graned config api, which allows us to use attributes,
  sub children, arrays and enum lookups in config files.

* Added logfile settings

* xml_*_lookup now can return attributes too (by using @ as starting
  char of name tokens)

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.9 2004/06/23 17:24:43 wingman Exp $
20 */
21
22 #ifndef _EGG_CORE_CONFIG_H_
23 #define _EGG_CORE_CONFIG_H_
24
25 #include "logfile.h" /* logging_t */
26
27
28 typedef struct {
29 /* General bot stuff. */
30 char *botname; /* Name of the bot as seen by user. */
31 char *userfile; /* File we store users in. */
32 char *lockfile; /* To make sure only one instance runs. */
33
34 /* Owner stuff. */
35 char *owner;
36 char *admin;
37
38 /* Paths. */
39 char *help_path;
40 char *temp_path;
41 char *text_path;
42 char *module_path;
43
44 /* Logging. */
45 logging_t logging;
46
47 /* Info to display in whois command. */
48 char *whois_items;
49
50 /* Other. */
51 int die_on_sigterm;
52 } core_config_t;
53
54 extern core_config_t core_config;
55
56 int core_config_init(const char *);
57 int core_config_save(void);
58
59 #endif /* !_EGG_CORE_CONFIG_H_ */

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23