Apply patch from thomasg <thomas@gstaedtner.net>:
authormickeyl <mickeyl@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 23 Oct 2008 20:12:49 +0000 (20:12 +0000)
committermickeyl <mickeyl@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 23 Oct 2008 20:12:49 +0000 (20:12 +0000)
"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."

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@37031 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore/Ecore_Data.h
src/lib/ecore/ecore_path.c

index 0598e9d..3d4b512 100644 (file)
@@ -331,7 +331,7 @@ extern "C" {
    /*
     * 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;
index 5eb80b2..4b51c51 100644 (file)
@@ -148,7 +148,7 @@ ecore_path_group_find(Ecore_Path_Group *group, const char *name)
  * @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 @@ ecore_path_group_available(Ecore_Path_Group *group)
        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);