Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : apps/evfs

Dir     : e17/apps/evfs/src/plugins/file


Modified Files:
        evfs_fs_ftp.c evfs_fs_posix.c evfs_fs_samba.c evfs_fs_sftp.c 
        evfs_fs_tar.c evfs_fs_trash.c evfs_fs_vfolder.c 


Log Message:
*API BREAK* see the discussion in the mailing list. misc and e_modules will 
follow

===================================================================
RCS file: /cvs/e/e17/apps/evfs/src/plugins/file/evfs_fs_ftp.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- evfs_fs_ftp.c       25 Jun 2007 07:15:23 -0000      1.2
+++ evfs_fs_ftp.c       25 Jul 2007 17:00:54 -0000      1.3
@@ -143,7 +143,7 @@
      }
    if (!(conn->filled))
      {
-        int columns = ecore_list_nodes(fields);
+        int columns = ecore_list_count(fields);
 
         if (columns == 4)
           {
@@ -177,9 +177,9 @@
           }
         conn->filled = 1;
      }
-   ref->path = ecore_list_goto_index(fields, conn->file);
-   if (!(strncmp(ecore_list_goto_index(fields, conn->type), "d", 1))
-       || strstr(ecore_list_goto_index(fields, conn->type), "DIR"))
+   ref->path = ecore_list_index_goto(fields, conn->file);
+   if (!(strncmp(ecore_list_index_goto(fields, conn->type), "d", 1))
+       || strstr(ecore_list_index_goto(fields, conn->type), "DIR"))
      {
         ref->file_type = EVFS_FILE_DIRECTORY;
      }
@@ -294,7 +294,7 @@
      }
    else
      {
-        printf("Listed %i files.\n", ecore_list_nodes(files));
+        printf("Listed %i files.\n", ecore_list_count(files));
 
         /*Set out return pointer.. */
         *directory_list = files;
===================================================================
RCS file: /cvs/e/e17/apps/evfs/src/plugins/file/evfs_fs_posix.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- evfs_fs_posix.c     25 Jun 2007 07:15:23 -0000      1.8
+++ evfs_fs_posix.c     25 Jul 2007 17:00:54 -0000      1.9
@@ -130,12 +130,12 @@
    mon_list = ecore_hash_keys(posix_monitor_hash);
    if (mon_list)
      {
-        while ((key = ecore_list_remove_first(mon_list)))
+        while ((key = ecore_list_first_remove(mon_list)))
           {
              /*printf("Looking for clients for '%s'\n", key);*/
 
              indiv_list = ecore_hash_get(posix_monitor_hash, key);
-             ecore_list_goto_first(indiv_list);
+             ecore_list_first_goto(indiv_list);
 
              while ((mon = ecore_list_next(indiv_list)))
                {
@@ -152,7 +152,7 @@
         /*printf("No directories/files monitored by any client\n");*/
      }
 
-   while ((key = ecore_list_remove_first(watched_keys)))
+   while ((key = ecore_list_first_remove(watched_keys)))
      {
         evfs_posix_monitor_remove(client, key);
      }
@@ -201,7 +201,7 @@
      {
         evfs_file_monitor *mon;
 
-        ecore_list_goto_first(mon_list);
+        ecore_list_first_goto(mon_list);
         while ((mon = ecore_list_next(mon_list)))
           {
              printf("  Notifying client at id %ld of %s\n", mon->client->id,
@@ -220,7 +220,7 @@
 {
    evfs_file_monitor *mon;
 
-   ecore_list_goto_first(mon_list);
+   ecore_list_first_goto(mon_list);
 
    while ((mon = ecore_list_next(mon_list)))
      {
@@ -272,7 +272,7 @@
         if (!client_already_monitoring(client, mon_list))
           {
              /*We assume there is something already in the list.  This is 
probably bad a bad assumption */
-             ecore_list_goto_first(mon_list);
+             ecore_list_first_goto(mon_list);
              old = ecore_list_current(mon_list);
 
              /*Make sure we have the ecore ref, so the last monitor can nuke 
it */
@@ -322,7 +322,7 @@
         evfs_file_monitor *mon = NULL;
         evfs_file_monitor *check_last = NULL;
 
-        ecore_list_goto_first(mon_list);
+        ecore_list_first_goto(mon_list);
         while ((mon = ecore_list_current(mon_list)))
           {
              if (mon->client == client)
@@ -337,7 +337,7 @@
         goto out;
 
       final:
-        ecore_list_goto_first(mon_list);
+        ecore_list_first_goto(mon_list);
         check_last = ecore_list_current(mon_list);
         if (!check_last)
           {
===================================================================
RCS file: /cvs/e/e17/apps/evfs/src/plugins/file/evfs_fs_samba.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- evfs_fs_samba.c     29 Jun 2007 00:39:43 -0000      1.12
+++ evfs_fs_samba.c     25 Jul 2007 17:00:54 -0000      1.13
@@ -94,7 +94,7 @@
 
    printf("Looking for match for '%s' in auth cache\n", path);
 
-   ecore_list_goto_first(cache);
+   ecore_list_first_goto(cache);
    while ((obj = ecore_list_next(cache)))
      {
         if (!strncmp(obj->path, path, strlen(path)))
===================================================================
RCS file: /cvs/e/e17/apps/evfs/src/plugins/file/evfs_fs_sftp.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- evfs_fs_sftp.c      25 Jun 2007 07:15:23 -0000      1.8
+++ evfs_fs_sftp.c      25 Jul 2007 17:00:54 -0000      1.9
@@ -1139,7 +1139,7 @@
        printf("Directory list finished!\n");
 
        *directory_list = ecore_list_new();
-       while ( (file = ecore_list_remove_first(rhandle->file_list))) {
+       while ( (file = ecore_list_first_remove(rhandle->file_list))) {
                evfs_filereference* ref = NEW(evfs_filereference);
                ref->path = malloc(strlen(host) + 1 + strlen(schar) + 
strlen(file->filename) + 2);
                snprintf(ref->path, strlen(host) + 1 + strlen(schar) + 
strlen(file->filename) + 2, "/%s%s/%s", host, schar, file->filename);
===================================================================
RCS file: /cvs/e/e17/apps/evfs/src/plugins/file/evfs_fs_tar.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- evfs_fs_tar.c       25 Jun 2007 07:15:23 -0000      1.8
+++ evfs_fs_tar.c       25 Jul 2007 17:00:54 -0000      1.9
@@ -471,7 +471,7 @@
           {
              printf("Got node..%s/%s\n", ele->path, ele->name);
              keys = ecore_hash_keys(ele->children);
-             ecore_list_goto_first(keys);
+             ecore_list_first_goto(keys);
              while ((key = ecore_list_next(keys)))
                {
                   evfs_filereference *reference = NEW(evfs_filereference);
===================================================================
RCS file: /cvs/e/e17/apps/evfs/src/plugins/file/evfs_fs_trash.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- evfs_fs_trash.c     25 Jun 2007 07:15:23 -0000      1.14
+++ evfs_fs_trash.c     25 Jul 2007 17:00:54 -0000      1.15
@@ -169,7 +169,7 @@
    posix_plugin = evfs_get_plugin_for_uri(evfs_server_get(), "file");
 
    trash_dir_mapping = ecore_hash_new(ecore_str_hash, ecore_str_compare);
-   ecore_hash_set_free_key(trash_dir_mapping, free);
+   ecore_hash_free_key_cb_set(trash_dir_mapping, free);
 
    next_trash_file = NULL;
    
===================================================================
RCS file: /cvs/e/e17/apps/evfs/src/plugins/file/evfs_fs_vfolder.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- evfs_fs_vfolder.c   25 Jun 2007 07:15:23 -0000      1.17
+++ evfs_fs_vfolder.c   25 Jul 2007 17:00:54 -0000      1.18
@@ -89,7 +89,7 @@
           char* key;
           char path[MAX_GROUP_LENGTH];
 
-          ecore_list_goto_first(keys);
+          ecore_list_first_goto(keys);
           while ((key = ecore_list_next(keys))) {
                   snprintf(path,sizeof(path),"/%s",key); 
 



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to