Functions | |
gchar * | rox_basedir_save_config_path (const char *resource, const char *leaf) |
gchar * | rox_basedir_save_data_path (const char *resource, const char *leaf) |
gchar * | rox_basedir_load_config_path (const char *resource, const char *leaf) |
gchar * | rox_basedir_load_data_path (const char *resource, const char *leaf) |
GList * | rox_basedir_load_config_paths (const char *resource, const char *leaf) |
GList * | rox_basedir_load_data_paths (const char *resource, const char *leaf) |
void | rox_basedir_free_paths (GList *paths) |
const gchar * | rox_basedir_get_config_home (void) |
GList * | rox_basedir_get_config_paths (void) |
gchar * | basedir_save_config_path (const char *resource, const char *leaf) |
gchar * | basedir_save_data_path (const char *resource, const char *leaf) |
gchar * | basedir_load_config_path (const char *resource, const char *leaf) |
gchar * | basedir_load_data_path (const char *resource, const char *leaf) |
GList * | basedir_load_config_paths (const char *resource, const char *leaf) |
GList * | basedir_load_data_paths (const char *resource, const char *leaf) |
const gchar * | basedir_get_config_home (void) |
GList * | basedir_get_config_paths (void) |
const gchar* basedir_get_config_home | ( | void | ) |
GList* basedir_get_config_paths | ( | void | ) |
gchar* basedir_load_config_path | ( | const char * | resource, | |
const char * | leaf | |||
) |
Return the full path to a file from which configuration may be loaded.
[in] | resource | Either the name of the program ("Clock") or the programmers domain and the name of the program as "kerofin.demon.co.uk/Clock" |
[in] | leaf | Last part of file name, such as "alarms.xml". |
NULL
if no such file found.GList* basedir_load_config_paths | ( | const char * | resource, | |
const char * | leaf | |||
) |
Return a list of full paths to a file from which configuration may be loaded in each diretory where it exists. Useful for merging the conents of multiple files..
[in] | resource | Either the name of the program ("Clock") or the programmers domain and the name of the program as "kerofin.demon.co.uk/Clock" |
[in] | leaf | Last part of file name, such as "alarms.xml". |
NULL
if no such file found.gchar* basedir_load_data_path | ( | const char * | resource, | |
const char * | leaf | |||
) |
Return the full path to a file from which data may be loaded.
[in] | resource | Either the name of the program ("Clock") or the programmers domain and the name of the program as "kerofin.demon.co.uk/Clock" |
[in] | leaf | Last part of file name, such as "alarms.xml". |
NULL
if no such file found. GList* basedir_load_data_paths | ( | const char * | resource, | |
const char * | leaf | |||
) |
Return a list of full paths to a file from which data may be loaded in each diretory where it exists. Useful for merging the conents of multiple files..
[in] | resource | Either the name of the program ("Clock") or the programmers domain and the name of the program as "kerofin.demon.co.uk/Clock" |
[in] | leaf | Last part of file name, such as "alarms.xml". |
NULL
if no such file found.gchar* basedir_save_config_path | ( | const char * | resource, | |
const char * | leaf | |||
) |
Return the full path to a file where configuration may be saved.
[in] | resource | Either the name of the program ("Clock") or the programmers domain and the name of the program as "kerofin.demon.co.uk/Clock" |
[in] | leaf | Last part of file name, such as "alarms.xml". |
NULL
if saving has been disabled.gchar* basedir_save_data_path | ( | const char * | resource, | |
const char * | leaf | |||
) |
Return the full path to a file where data may be saved. Normally this is not required.
[in] | resource | Either the name of the program ("Clock") or the programmers domain and the name of the program as "kerofin.demon.co.uk/Clock" |
[in] | leaf | Last part of file name, such as "alarms.xml". |
NULL
if saving has been disabled.void rox_basedir_free_paths | ( | GList * | paths | ) |
Free a list returned by basedir_load_config_paths() or basedir_load_data_paths().
[in,out] | paths | list of paths. |
const gchar* rox_basedir_get_config_home | ( | void | ) |
GList* rox_basedir_get_config_paths | ( | void | ) |
gchar* rox_basedir_load_config_path | ( | const char * | resource, | |
const char * | leaf | |||
) |
Return the full path to a file from which configuration may be loaded.
[in] | resource | Either the name of the program ("Clock") or the programmers domain and the name of the program as "kerofin.demon.co.uk/Clock" |
[in] | leaf | Last part of file name, such as "alarms.xml". |
NULL
if no such file found. GList* rox_basedir_load_config_paths | ( | const char * | resource, | |
const char * | leaf | |||
) |
Return a list of full paths to a file from which configuration may be loaded in each diretory where it exists. Useful for merging the conents of multiple files..
[in] | resource | Either the name of the program ("Clock") or the programmers domain and the name of the program as "kerofin.demon.co.uk/Clock" |
[in] | leaf | Last part of file name, such as "alarms.xml". |
NULL
if no such file found. gchar* rox_basedir_load_data_path | ( | const char * | resource, | |
const char * | leaf | |||
) |
Return the full path to a file from which data may be loaded.
[in] | resource | Either the name of the program ("Clock") or the programmers domain and the name of the program as "kerofin.demon.co.uk/Clock" |
[in] | leaf | Last part of file name, such as "alarms.xml". |
NULL
if no such file found. GList* rox_basedir_load_data_paths | ( | const char * | resource, | |
const char * | leaf | |||
) |
Return a list of full paths to a file from which data may be loaded in each diretory where it exists. Useful for merging the conents of multiple files..
[in] | resource | Either the name of the program ("Clock") or the programmers domain and the name of the program as "kerofin.demon.co.uk/Clock" |
[in] | leaf | Last part of file name, such as "alarms.xml". |
NULL
if no such file found. gchar* rox_basedir_save_config_path | ( | const char * | resource, | |
const char * | leaf | |||
) |
Return the full path to a file where configuration may be saved.
[in] | resource | Either the name of the program ("Clock") or the programmers domain and the name of the program as "kerofin.demon.co.uk/Clock" |
[in] | leaf | Last part of file name, such as "alarms.xml". |
NULL
if saving has been disabled gchar* rox_basedir_save_data_path | ( | const char * | resource, | |
const char * | leaf | |||
) |
Return the full path to a file where data may be saved. Normally this is not required.
[in] | resource | Either the name of the program ("Clock") or the programmers domain and the name of the program as "kerofin.demon.co.uk/Clock" |
[in] | leaf | Last part of file name, such as "alarms.xml". |
NULL
if saving has been disabled