gw_properties_file_read_variable_value
Reads the variable value in the properties file.
gint gw_properties_file_read_variable_value ( const gchar *name, const gchar *var, gchar **value);
This function reads the variable value in the properties file.
Parameters
name | file name |
var | variable name |
value | value (note that value must be freed with g_free) |
Result: an error code. Returns 0 when it's done. Returns -1 when an error occured. .
gw_properties_file_load_all_settings
Reads the variable value in the properties file and allocates a new GWSettings.
gint gw_properties_file_load_all_settings ( const gchar *name, GWSettings **settings);
This function reads the variable value in the properties file and allocates a new GWSettings.
Parameters
name | file name |
settings | a pointere (note that settings must be freed with gw_settings_free) |
Result: an error code. Returns 0 when it's done. Returns -1 when an error occured. .
gw_properties_file_save_all_settings
Saves all variable of the GWSettings in the properties file and frees it.
gint gw_properties_file_save_all_settings ( const gchar *name, GWSettings **settings, const gchar *mode);
This function saves all variable of the GWSettings in the properties file and frees it. Warning : the mode parameter is not yet implemented. This function erase all existing parameters (and comments). Not free the GWSettings at time.
Parameters
name | file name |
settings | a pointer (note will be freed) |
mode | save mode "u" : update, "e" : ecrase |
Result: an error code. Returns 0 when it's done. Returns -1 when an error occured. .
|