Top | ![]() |
![]() |
![]() |
![]() |
guint | util_get_number_of_cpus () |
gboolean | split_string_from_file_on_equals () |
void | util_add_to_deletion_list () |
void | util_remove_all_in_deletion_list () |
gchar * | util_str_remove_chars () |
#define | EMPTY() |
#define | foreach_list() |
#define | foreach_slist() |
#define | foreach_str() |
int | util_remove () |
gboolean split_string_from_file_on_equals (const gchar *buf
,gchar **key
,gchar **val
);
buf
: the input string
key
: newly allocated string that is before the '='
val
: newly allocated string after the '='
Designed for file line processing, so it ignores strings beginning with special characters, such as '#'; returns false in such situations. Also returns false if no equals character is found
e.g. if buf = "GPS.parameter=42" key = "GPS.parameter" val = "42"
void
util_add_to_deletion_list (const gchar *filename
);
Add a name of a file into the list that is to be deleted on program exit Normally this is for files that get used asynchronously, so we don't know when it's time to delete them - other than at this program's end
void
util_remove_all_in_deletion_list (void
);
Delete all the files in the deletion list This should only be called on program exit