GnuCash  5.6-150-g038405b370+
gnc-gkeyfile-utils.h
Go to the documentation of this file.
1 /*
2  * gnc-gkeyfile-utils.h -- utility functions for working
3  * with GKeyFile data structures from GLib
4  * Copyright (C) 2005 David Hampton <hampton@employees.org>
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; either version 2 of
9  * the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, contact:
18  *
19  * Free Software Foundation Voice: +1-617-542-5942
20  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
21  * Boston, MA 02110-1301, USA gnu@gnu.org
22  */
23 
37 #ifndef GNC_GKEYFILE_UTILS_H
38 #define GNC_GKEYFILE_UTILS_H
39 
40 
55 GKeyFile *gnc_key_file_load_from_file (const gchar *file,
56  gboolean ignore_error,
57  gboolean return_empty_struct,
58  GError **caller_error);
59 
60 
73 gboolean gnc_key_file_save_to_file (const gchar *file,
74  GKeyFile *key_file,
75  GError **error);
76 
77 #endif /* GNC_GKEYFILE_UTILS_H */
78 
gboolean gnc_key_file_save_to_file(const gchar *filename, GKeyFile *key_file, GError **error)
Write a key/value file from memory to disk.
GKeyFile * gnc_key_file_load_from_file(const gchar *filename, gboolean ignore_error, gboolean return_empty_struct, GError **caller_error)
Open and read a key/value file from disk into memory.