root/trunk/src/conf.h

Revision 680, 1.2 kB (checked in by jajcus, 3 years ago)

- dates in the copyright header updated

Line 
1 /* $Id: conf.h,v 1.2 2003/01/15 14:12:36 jajcus Exp $ */
2
3 /*
4  *  (C) Copyright 2002-2006 Jacek Konieczny [jajcus(a)jajcus,net]
5  *
6  *  This program is free software; you can redistribute it and/or modify
7  *  it under the terms of the GNU General Public License Version 2 as
8  *  published by the Free Software Foundation.
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., 675 Mass Ave, Cambridge, MA 02139, USA.
18  */
19
20 #ifndef conf_h
21 #define conf_h
22
23 extern xmlnode config;
24
25 /* returns string (with leading and trailing whitespace stripped) from config file */
26 /* string is allocated from configs pool */
27 char *config_load_string(const char *tag);
28
29 /* returns formated string from config file */
30 /* string should be freed after use */
31 char *config_load_formatted_string(const char *tag);
32
33 /* returns number read from config file */
34 int config_load_int(const char *tag,int defval);
35
36 #endif
Note: See TracBrowser for help on using the browser.