Top |
#define | LI_TYPE_CONFIG_DATA |
LiConfigData * | li_config_data_new () |
void | li_config_data_load_file () |
void | li_config_data_load_data () |
gboolean | li_config_data_open_block () |
void | li_config_data_new_block () |
gchar * | li_config_data_get_value () |
gboolean | li_config_data_set_value () |
gchar * | li_config_data_get_data () |
gboolean | li_config_data_save_to_file () |
void | li_config_data_reset () |
gboolean | li_config_data_next () |
void li_config_data_load_file (LiConfigData *cdata
,GFile *file
,GError **error
);
gboolean li_config_data_open_block (LiConfigData *cdata
,const gchar *field
,const gchar *value
,gboolean reset_index
);
Open a block in the config file.
cdata |
A valid LiConfigData instance |
|
field |
A field indentifier |
|
value |
The value of the field, or |
[allow-none][default NULL] |
reset_index |
|
void
li_config_data_new_block (LiConfigData *cdata
);
Create a new block at the end of the file and open it.
gchar * li_config_data_get_value (LiConfigData *cdata
,const gchar *field
);
gboolean li_config_data_set_value (LiConfigData *cdata
,const gchar *field
,const gchar *value
);
Change the value of a field in the currently opened block. If the field does not exist, it will be created.
gboolean li_config_data_save_to_file (LiConfigData *cdata
,const gchar *filename
,GError **error
);
void
li_config_data_reset (LiConfigData *cdata
);
Reset current block index and jup to the beginning.