From f98918055e7c7dbbc7356cf1051147a9ed7b014b Mon Sep 17 00:00:00 2001 From: cedric Date: Mon, 25 Oct 2010 12:25:24 +0000 Subject: [PATCH] * eina: make eina_file_ls and eina_file_direct_ls container be DIR*. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@53862 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/eina_file.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/lib/eina_file.c b/src/lib/eina_file.c index ac3ce38..288ff66 100644 --- a/src/lib/eina_file.c +++ b/src/lib/eina_file.c @@ -108,10 +108,10 @@ _eina_file_ls_iterator_next(Eina_File_Iterator *it, void **data) return EINA_TRUE; } -static char * +static DIR * _eina_file_ls_iterator_container(Eina_File_Iterator *it) { - return it->dir; + return it->dirp; } static void @@ -166,10 +166,10 @@ _eina_file_direct_ls_iterator_next(Eina_File_Direct_Iterator *it, void **data) return EINA_TRUE; } -static char * +static DIR * _eina_file_direct_ls_iterator_container(Eina_File_Direct_Iterator *it) { - return it->dir; + return it->dirp; } static void @@ -412,6 +412,8 @@ eina_file_split(char *path) * * The iterator will walk over '.' and '..' without returning them. * + * The iterator container is the DIR* corresponding to the current walk. + * * @param dir The name of the directory to list * @return Return an Eina_Iterator that will walk over the files and * directory in the pointed directory. On failure it will @@ -473,6 +475,8 @@ eina_file_ls(const char *dir) * * The iterator will walk over '.' and '..' without returning them. * + * The iterator container is the DIR* corresponding to the current walk. + * * @param dir The name of the directory to list * @return Return an Eina_Iterator that will walk over the files and -- 2.7.4