From: mickeyl Date: Thu, 23 Oct 2008 20:12:49 +0000 (+0000) Subject: Apply patch from thomasg : X-Git-Tag: 2.0_alpha~194^2~1750 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9e1b3f742f2be4fbea69951d19067ff73a8319fc;p=framework%2Fuifw%2Fecore.git Apply patch from thomasg : "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: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@37031 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/ecore/Ecore_Data.h b/src/lib/ecore/Ecore_Data.h index 0598e9d..3d4b512 100644 --- a/src/lib/ecore/Ecore_Data.h +++ b/src/lib/ecore/Ecore_Data.h @@ -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; diff --git a/src/lib/ecore/ecore_path.c b/src/lib/ecore/ecore_path.c index 5eb80b2..4b51c51 100644 --- a/src/lib/ecore/ecore_path.c +++ b/src/lib/ecore/ecore_path.c @@ -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);