Freeciv-3.3: /fast/freeciv/nightly/main/utility/registry.h Source File

Freeciv-3.3

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/* utility */
21#include "shared.h"
22
23struct section;
24
25void registry_module_init(void);
26void registry_module_close(void);
27
28struct section_file *secfile_new(bool allow_duplicates);
29void secfile_destroy(struct section_file *secfile);
30struct section_file *secfile_load(const char *filename,
31 bool allow_duplicates);
32
33void secfile_allow_digital_boolean(struct section_file *secfile,
34 bool allow_digital_boolean);
35
36const char *secfile_error(void);
37const char *section_name(const struct section *psection);
38
39#include "registry_ini.h"
40
41#ifdef __cplusplus
42}
43#endif /* __cplusplus */
44
45#endif /* FC__REGISTRY_H */
secfile_load
struct section_file * secfile_load(const char *filename, bool allow_duplicates)
Definition registry.c:51
secfile_allow_digital_boolean
void secfile_allow_digital_boolean(struct section_file *secfile, bool allow_digital_boolean)
Definition section_file.c:124
secfile_new
struct section_file * secfile_new(bool allow_duplicates)
Definition section_file.c:73
registry_module_init
void registry_module_init(void)
Definition registry.c:31
secfile_error
const char * secfile_error(void)
Definition section_file.c:36
section_name
const char * section_name(const struct section *psection)
Definition section_file.c:65
secfile_destroy
void secfile_destroy(struct section_file *secfile)
Definition section_file.c:95
registry_module_close
void registry_module_close(void)
Definition registry.c:41
registry_ini.h
shared.h
section_file
Definition section_file.h:36
section_file::allow_digital_boolean
bool allow_digital_boolean
Definition section_file.h:46
section_file::allow_duplicates
bool allow_duplicates
Definition section_file.h:45
section
Definition section_file.h:28