/[LeafOK_CVS]/pvpgn-1.7.4/src/d2dbs/prefs.h
ViewVC logotype

Contents of /pvpgn-1.7.4/src/d2dbs/prefs.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (vendor branch)
Tue Jun 6 03:41:38 2006 UTC (19 years, 9 months ago) by sysadm
Branch: GNU, MAIN
CVS Tags: arelease, HEAD
Changes since 1.1: +0 -0 lines
Content type: text/x-chdr
no message

1 /*
2 * Copyright (C) 2000,2001 Onlyer (onlyer@263.net)
3 * Copyright (C) 2001 sousou (liupeng.cs@263.net)
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 #ifndef INCLUDED_PREFS_H
20 #define INCLUDED_PREFS_H
21
22 typedef struct
23 {
24 char const * logfile;
25 char const * logfile_gs;
26 char const * loglevels;
27 char const * servaddrs;
28 char const * gameservlist;
29 char const * charsavedir;
30 char const * charsavebakdir;
31 char const * charinfodir;
32 char const * charinfobakdir;
33 char const * ladderdir;
34 unsigned int laddersave_interval;
35 unsigned int ladderinit_time;
36 unsigned int shutdown_delay;
37 unsigned int shutdown_decr;
38 unsigned int idletime;
39 unsigned int keepalive_interval;
40 unsigned int timeout_checkinterval;
41 unsigned int XML_ladder_output;
42 unsigned int ladderupdate_threshold;
43 unsigned int ladder_chars_only;
44 unsigned int difficulty_hack;
45 } t_prefs;
46
47 extern int d2dbs_prefs_load(char const * filename);
48 extern int d2dbs_prefs_reload(char const * filename);
49 extern int d2dbs_prefs_unload(void);
50
51 extern char const * d2dbs_prefs_get_logfile(void);
52 extern char const * prefs_get_logfile_gs(void);
53 extern char const * d2dbs_prefs_get_servaddrs(void);
54 extern char const * d2dbs_prefs_get_charsave_dir(void);
55 extern char const * d2dbs_prefs_get_charinfo_dir(void);
56 extern char const * prefs_get_charsave_bak_dir(void);
57 extern char const * prefs_get_charinfo_bak_dir(void);
58 extern char const * d2dbs_prefs_get_ladder_dir(void);
59 extern char const * d2dbs_prefs_get_d2gs_list(void);
60 extern unsigned int prefs_get_laddersave_interval(void);
61 extern unsigned int prefs_get_ladderinit_time(void);
62 extern char const * d2dbs_prefs_get_loglevels(void);
63 extern unsigned int d2dbs_prefs_get_shutdown_delay(void);
64 extern unsigned int d2dbs_prefs_get_shutdown_decr(void);
65 extern unsigned int d2dbs_prefs_get_idletime(void);
66 extern unsigned int prefs_get_keepalive_interval(void);
67 extern unsigned int d2dbs_prefs_get_timeout_checkinterval(void);
68 extern unsigned int d2dbs_prefs_get_XML_output_ladder(void);
69 extern unsigned int prefs_get_ladderupdate_threshold(void);
70 extern unsigned int prefs_get_ladder_chars_only(void);
71 extern unsigned int prefs_get_difficulty_hack(void);
72
73 #endif

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1