#include <glib.h>
#include <glib/gprintf.h>
Include dependency graph for helpers.c:
This graph shows which files directly or indirectly include this file:
Functions | |
int | seperate_list (GPtrArray *array, char *list) |
int | deviceprintf (char **dest, char *format, char *device) |
int | mountpointprintf (char **dest, char *format, char *mountpoint) |
int deviceprintf | ( | char ** | dest, | |
char * | format, | |||
char * | device | |||
) |
Print device to the format string where there is %d. The new string dest is allocated with malloc and must therefore be freed.
dest | double pointer to store location of newly created string | |
format | format string containing '%d' to be replaced by | |
device | argument to replace '%d' in with |
int mountpointprintf | ( | char ** | dest, | |
char * | format, | |||
char * | mountpoint | |||
) |
Print mount point to the format string where there is %m. The new string dest is allocated with malloc and must therefore be freed.
dest | double pointer to store location of newly created string | |
format | format string containing 'm' to be replaced by | |
mountpoint | argument to replace 'm' in with |
int seperate_list | ( | GPtrArray * | array, | |
char * | list | |||
) |
seperate list by spaces and store information in .
array | pointer array where list entries are stored in | |
list | list string with entres seperated by space |