The attached patch fixes the ecore_path_group_available by removing the
senseless check on shared object suffix.
It also renames the function to ecore_path_group_available_get, to match the
ecore API.

Big thanks to pfritz for his help!

Greets,

thomasg
Index: ecore_path.c
===================================================================
--- ecore_path.c        (Revision 36702)
+++ ecore_path.c        (Arbeitskopie)
@@ -148,7 +148,7 @@
  * @ingroup Ecore_Path_Group
  */
 EAPI Ecore_List *
-ecore_path_group_available(Ecore_Path_Group *group)
+ecore_path_group_available_get(Ecore_Path_Group *group)
 {
    Ecore_List *avail = NULL;
    char *path;
@@ -179,18 +179,12 @@
        while ((d = readdir(dir)) != NULL)
          {
             char ppath[PATH_MAX];
-            char *ext;
 /*          char n[PATH_MAX];
             int l;
 */
             if (!strncmp(d->d_name, ".", 1))
               continue;
 
-            ext = strrchr(d->d_name, '.');
-
-            if (!ext || strncmp(ext, SHARED_LIB_SUFFIX, 
sizeof(SHARED_LIB_SUFFIX)))
-              continue;
-
             snprintf(ppath, PATH_MAX, "%s/%s", path, d->d_name);
 
             stat(ppath, &st);
Index: Ecore_Data.h
===================================================================
--- Ecore_Data.h        (Revision 36702)
+++ Ecore_Data.h        (Arbeitskopie)
@@ -331,7 +331,7 @@
    /*
     * Get a list of all the available files in a path set
     */
-   EAPI Ecore_List * ecore_path_group_available(Ecore_Path_Group *group);
+   EAPI Ecore_List * ecore_path_group_available_get(Ecore_Path_Group *group);
    
    
    typedef struct _ecore_plugin Ecore_Plugin;
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to