panel-plugin/helpers.c File Reference

#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)


Function Documentation

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.

Parameters:
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
Returns:
0 on failure or no replacement, >0 on success.

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.

Parameters:
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
Returns:
0 on failure or no replacement, >0 on success.

int seperate_list ( GPtrArray *  array,
char *  list 
)

seperate list by spaces and store information in .

Parameters:
array pointer array where list entries are stored in
list list string with entres seperated by space
Returns:
0 on failure, number of entries on success.


Generated on Sun Feb 18 18:07:09 2007 for Xfce4-Mount-Plugin by  doxygen 1.5.1