Freeciv-3.2
Loading...
Searching...
No Matches
registry.h
Go to the documentation of this file.
1/**********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12***********************************************************************/
13#ifndef FC__REGISTRY_H
14#define FC__REGISTRY_H
15
16#ifdef __cplusplus
17extern "C" {
18#endif /* __cplusplus */
19
20#include "shared.h"
21
22struct section;
23
24void registry_module_init(void);
25void registry_module_close(void);
26
28void secfile_destroy(struct section_file *secfile);
29struct section_file *secfile_load(const char *filename,
30 bool allow_duplicates);
31
34
35const char *secfile_error(void);
36const char *section_name(const struct section *psection);
37
38#include "registry_ini.h"
39
40#ifdef __cplusplus
41}
42#endif /* __cplusplus */
43
44#endif /* FC__REGISTRY_H */
struct section_file * secfile_load(const char *filename, bool allow_duplicates)
Definition registry.c:50
void secfile_allow_digital_boolean(struct section_file *secfile, bool allow_digital_boolean)
struct section_file * secfile_new(bool allow_duplicates)
void registry_module_init(void)
Definition registry.c:30
const char * secfile_error(void)
const char * section_name(const struct section *psection)
void secfile_destroy(struct section_file *secfile)
void registry_module_close(void)
Definition registry.c:40
bool allow_digital_boolean
bool allow_duplicates