All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
config.h
Go to the documentation of this file.
1 /*
2  * config.h - APme: Aion Automatic Abyss Point Tracker
3  *
4  * Copyright (C) 2012 Mitja Horvat <pinkfluid@gmail.com>
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 as published by
8  * the Free Software Foundation; either version 2 of the License, or (at
9  * your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License along
17  * with this program; if not, write to the Free Software Foundation, Inc.,
18  * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
19  */
20 
26 #ifndef CONFIG_H_INCLUDED
27 #define CONFIG_H_INCLUDED
28 
35 #define CFG_APME_INI "apme.ini"
36 
38 #define CFG_SEC_APP "apme"
39 
41 #define CFG_KEYSZ 256
42 
43 extern bool cfg_init(void);
44 extern bool cfg_load(void);
45 extern bool cfg_store(void);
46 extern bool cfg_set_string(char *section, char *name, char *value);
47 extern bool cfg_set_int(char *section, char *key, int value);
48 extern bool cfg_get_string(char *section, char *name, char *value, size_t valuesz);
49 
50 extern void cfg_periodic(void);
51 
56 #endif /* CONFIG_H_INCLUDE */