[Config] Add type-safe configuration parsing
[tilda-gobject.git] / tilda-config.h
1 #ifndef TILDA_CONFIG_H
2 #define TILDA_CONFIG_H
3
4 #include "tilda-terminal.h"
5 #include <glib.h>
6
7 /* Global configuration-holding structures */
8 extern GKeyFile *config_defaults;
9 extern GKeyFile *config_userprefs;
10
11 /* Set-up and tear-down functions */
12 gboolean tilda_config_init (const gchar *filename);
13 gboolean tilda_config_free ();
14
15 /* API */
16 gboolean tilda_terminal_set_property_from_config (TildaTerminal *self, const gchar *property);
17 gboolean tilda_window_set_property_from_config (TildaWindow *self, const gchar *property);
18
19 #endif /* TILDA_CONFIG_H */
20
21 /* vim: set ts=4 sts=4 sw=4 noet tw=112: */