Enlightenment CVS committal

Author  : chaos
Project : e17
Module  : proto

Dir     : e17/proto/entropy/src/plugins


Modified Files:
        filesystem.c 


Log Message:
* group remove support

===================================================================
RCS file: /cvs/e/e17/proto/entropy/src/plugins/filesystem.c,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -3 -r1.72 -r1.73
--- filesystem.c        20 Jul 2006 15:19:19 -0000      1.72
+++ filesystem.c        20 Jul 2006 17:49:58 -0000      1.73
@@ -36,6 +36,7 @@
 void entropy_filesystem_file_remove (entropy_generic_file * file, 
entropy_gui_component_instance* instance);
 void entropy_filesystem_metadata_groups_get(entropy_gui_component_instance* 
instance);
 void entropy_filesystem_file_group_add(entropy_generic_file* file, char* 
group);
+void entropy_filesystem_file_group_remove(entropy_generic_file* file, char* 
group);
 
 Ecore_List* entropy_filesystem_metadata_groups_retrieve();
 
@@ -602,6 +603,7 @@
   plugin->misc_functions.groups_get = &entropy_filesystem_metadata_groups_get;
   plugin->misc_functions.groups_retrieve = 
&entropy_filesystem_metadata_groups_retrieve;
   plugin->file_functions.group_file_add = &entropy_filesystem_file_group_add;
+  plugin->file_functions.group_file_remove = 
&entropy_filesystem_file_group_remove;
   
   return base; 
 
@@ -1019,6 +1021,21 @@
   uri_path_from = evfs_parse_uri (uri_from);
 
   evfs_client_metadata_group_file_add(con, uri_path_from->files[0], group);
+
+  free(uri_from);
+  free(uri_path_from);
+  
+}
+
+void entropy_filesystem_file_group_remove(entropy_generic_file* file, char* 
group)
+{
+  evfs_file_uri_path *uri_path_from;
+  char* uri_from;
+  
+  uri_from = entropy_core_generic_file_uri_create (file, 0);
+  uri_path_from = evfs_parse_uri (uri_from);
+
+  evfs_client_metadata_group_file_remove(con, uri_path_from->files[0], group);
 
   free(uri_from);
   free(uri_path_from);



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to