|
gimme-alpha 0.1
|
00001 /* 00002 ** g_file_special_ops.c 00003 ** 00004 ** Made by (Johnny Q. Hacker) 00005 ** Login <solarion@borkborkbork> 00006 ** 00007 00008 Copyright (C) 2009 Joseph Pingenot 00009 00010 This program is free software: you can redistribute it and/or modify 00011 it under the terms of the GNU Affero General Public License as published by 00012 the Free Software Foundation, either version 3 of the License, or 00013 (at your option) any later version. 00014 00015 This program is distributed in the hope that it will be useful, 00016 but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 GNU Affero General Public License for more details. 00019 00020 You should have received a copy of the GNU Affero General Public License 00021 along with this program. If not, see <http://www.gnu.org/licenses/>. 00022 00023 ** Started on Fri May 29 16:32:16 2009 Johnny Q. Hacker 00024 ** Last update Sun May 12 01:17:25 2002 Speed Blue 00025 */ 00026 00027 #include "g_file_special_ops.h" 00028 00029 GFile* g_file_get_common_ancestor(GList* files) { 00030 00031 } 00032 00033 GList* g_file_get_unique_paths(GList* files) { 00034 GList *new_files = NULL; 00035 GList *p; 00036 GFile *common_ancestor = g_file_get_common_ancestor(files); 00037 char* rel_path; 00038 if(common_ancestor == NULL){ 00039 for(p=files; p!=NULL; p=g_list_next(p)) 00040 new_files = g_list_append(new_files, g_file_dup(p->data)); 00041 }else{ 00042 for(p=files; p!=NULL; p=g_list_next(p)) { 00043 rel_path = g_file_get_relative_path(common_base, p->data); 00044 } 00045 g_free(common_base); 00046 } 00047 return new_files; 00048 }