GnuCash
5.6-150-g038405b370+
|
This file provides routines that help make it easier to use the GKeyFile functions from within Gnucash. More...
Files | |
file | gnc-gkeyfile-utils.c |
GKeyFile helper routines. | |
file | gnc-gkeyfile-utils.h |
GKeyFile helper routines. | |
Functions | |
GKeyFile * | gnc_key_file_load_from_file (const gchar *file, gboolean ignore_error, gboolean return_empty_struct, GError **caller_error) |
Open and read a key/value file from disk into memory. More... | |
gboolean | gnc_key_file_save_to_file (const gchar *file, GKeyFile *key_file, GError **error) |
Write a key/value file from memory to disk. More... | |
This file provides routines that help make it easier to use the GKeyFile functions from within Gnucash.
GKeyFile * gnc_key_file_load_from_file | ( | const gchar * | file, |
gboolean | ignore_error, | ||
gboolean | return_empty_struct, | ||
GError ** | caller_error | ||
) |
Open and read a key/value file from disk into memory.
file | The name of the file to load. This should be a fully qualified path. |
ignore_error | If true this function will ignore any problems reading the an existing file from disk. |
return_empty_struct | If TRUE this function will always return a GKeyFile structure. Set to TRUE if performing a read/modify/write on a file that may or may not already exist. |
Definition at line 66 of file gnc-gkeyfile-utils.c.
gboolean gnc_key_file_save_to_file | ( | const gchar * | file, |
GKeyFile * | key_file, | ||
GError ** | error | ||
) |
Write a key/value file from memory to disk.
If there is no data to be written, this function will not create a file and will remove any exiting file.
file | The name of the file to write. This should be a fully qualified path. |
key_file | The data to be written. |
Definition at line 101 of file gnc-gkeyfile-utils.c.