|
gimme-alpha 0.1
|
#include "g_file_special_ops.h"
Include dependency graph for g_file_special_ops.c:Go to the source code of this file.
Functions | |
| GFile * | g_file_get_common_ancestor (GList *files) |
| GList * | g_file_get_unique_paths (GList *files) |
| GFile* g_file_get_common_ancestor | ( | GList * | files | ) |
Definition at line 29 of file g_file_special_ops.c.
Referenced by g_file_get_unique_paths().
{
}
Here is the caller graph for this function:| GList* g_file_get_unique_paths | ( | GList * | files | ) |
Definition at line 33 of file g_file_special_ops.c.
References g_file_get_common_ancestor().
{
GList *new_files = NULL;
GList *p;
GFile *common_ancestor = g_file_get_common_ancestor(files);
char* rel_path;
if(common_ancestor == NULL){
for(p=files; p!=NULL; p=g_list_next(p))
new_files = g_list_append(new_files, g_file_dup(p->data));
}else{
for(p=files; p!=NULL; p=g_list_next(p)) {
rel_path = g_file_get_relative_path(common_base, p->data);
}
g_free(common_base);
}
return new_files;
}
Here is the call graph for this function: