put example files to dedicated dir
[monster.git] / conf.h
blob2a0bad294ebe4f6bc49bf9870801e5c1e2eaebdb
1 /* -*- Mode: C ; c-basic-offset: 2 -*- */
2 /*****************************************************************************
4 * Interface to configuration file
5 * This file is part of monster
7 * Copyright (C) 2006,2007 Nedko Arnaudov <nedko@arnaudov.name>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; version 2 of the License
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
22 *****************************************************************************/
24 #ifndef CONF_H__865B0AC5_8A54_4782_BE49_88CC3DDABD50__INCLUDED
25 #define CONF_H__865B0AC5_8A54_4782_BE49_88CC3DDABD50__INCLUDED
27 int
28 conf_file_parse();
30 void
31 conf_file_cleanup();
33 int
34 conf_file_get_string(
35 const char * xpath,
36 char * buffer_ptr,
37 size_t buffer_size);
39 int
40 conf_file_get_int(
41 const char * xpath,
42 int * value_ptr);
44 int
45 conf_file_get_uint(
46 const char * xpath,
47 unsigned int * value_ptr);
49 #endif /* #ifndef CONF_H__865B0AC5_8A54_4782_BE49_88CC3DDABD50__INCLUDED */