OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
configfile.h
Go to the documentation of this file.
1 /*
2  * mape - C4 Landscape.txt editor
3  *
4  * Copyright (c) 2005-2009, Armin Burgmeier
5  *
6  * Distributed under the terms of the ISC license; see accompanying file
7  * "COPYING" for details.
8  *
9  * "Clonk" is a registered trademark of Matthes Bender, used with permission.
10  * See accompanying file "TRADEMARK" for details.
11  *
12  * To redistribute this file separately, substitute the full license texts
13  * for the above references.
14  */
15 
16 #ifndef INC_MAPE_CONFIGFILE_H
17 #define INC_MAPE_CONFIGFILE_H
18 
19 #include <glib.h>
20 #include "mape/forward.h"
21 
23  gchar* key;
24  gchar* value;
25 };
26 
28  gchar* file_path;
29 
31  gsize entry_count;
32 };
33 
34 MapeConfigFile* mape_config_file_new(const gchar* filename);
36 
38  GError** error);
39 
42  gsize index);
44  const gchar* key);
45 
47  const gchar* key,
48  const gchar* value);
49 
52 
53 #endif /* INC_MAPE_CONFIGFILE_H */
gsize mape_config_file_get_entry_count(MapeConfigFile *file)
Definition: configfile.c:120
MapeConfigFileEntry * mape_config_file_get_entry_by_key(MapeConfigFile *file, const gchar *key)
Definition: configfile.c:132
const gchar * mape_config_file_entry_get_key(MapeConfigFileEntry *entry)
Definition: configfile.c:169
MapeConfigFileEntry * mape_config_file_get_entry(MapeConfigFile *file, gsize index)
Definition: configfile.c:125
gsize entry_count
Definition: configfile.h:31
void mape_config_file_set_entry(MapeConfigFile *file, const gchar *key, const gchar *value)
Definition: configfile.c:143
MapeConfigFileEntry * entries
Definition: configfile.h:30
Definition: configfile.h:22
gboolean mape_config_file_serialise(MapeConfigFile *file, GError **error)
Definition: configfile.c:70
const gchar * mape_config_file_entry_get_value(MapeConfigFileEntry *entry)
Definition: configfile.c:174
gchar * file_path
Definition: configfile.h:28
void mape_config_file_destroy(MapeConfigFile *file)
Definition: configfile.c:56
MapeConfigFile * mape_config_file_new(const gchar *filename)
Definition: configfile.c:21