summaryrefslogtreecommitdiff
path: root/legacy/eio
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2012-06-20 18:11:20 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2012-06-20 18:11:20 +0000
commit74b38070b65c9d3e5dcb28f5e81d67a4d8a795ad (patch)
treeb9c8a4568e1f6aa0fa0e2550130d159ad5a4eec6 /legacy/eio
parentab39c0d3995e13b2ed9de334d12476be80380474 (diff)
use proper filter callback type for eio_dir_stat_ls().
The user is not supposed to change info as it's already fully populated by stat(). SVN revision: 72551
Diffstat (limited to 'legacy/eio')
-rw-r--r--legacy/eio/src/lib/Eio.h2
-rw-r--r--legacy/eio/src/lib/eio_dir.c9
2 files changed, 8 insertions, 3 deletions
diff --git a/legacy/eio/src/lib/Eio.h b/legacy/eio/src/lib/Eio.h
index 405375175e..e0ceff4a33 100644
--- a/legacy/eio/src/lib/Eio.h
+++ b/legacy/eio/src/lib/Eio.h
@@ -260,7 +260,7 @@ EAPI Eio_File *eio_file_stat_ls(const char *dir,
260 * ignore it. 260 * ignore it.
261 */ 261 */
262EAPI Eio_File *eio_dir_stat_ls(const char *dir, 262EAPI Eio_File *eio_dir_stat_ls(const char *dir,
263 Eio_Filter_Dir_Cb filter_cb, 263 Eio_Filter_Direct_Cb filter_cb,
264 Eio_Main_Direct_Cb main_cb, 264 Eio_Main_Direct_Cb main_cb,
265 Eio_Done_Cb done_cb, 265 Eio_Done_Cb done_cb,
266 Eio_Error_Cb error_cb, 266 Eio_Error_Cb error_cb,
diff --git a/legacy/eio/src/lib/eio_dir.c b/legacy/eio/src/lib/eio_dir.c
index a1c17877e6..40d2b6a670 100644
--- a/legacy/eio/src/lib/eio_dir.c
+++ b/legacy/eio/src/lib/eio_dir.c
@@ -929,7 +929,7 @@ eio_dir_unlink(const char *path,
929 929
930EAPI Eio_File * 930EAPI Eio_File *
931eio_dir_stat_ls(const char *dir, 931eio_dir_stat_ls(const char *dir,
932 Eio_Filter_Dir_Cb filter_cb, 932 Eio_Filter_Direct_Cb filter_cb,
933 Eio_Main_Direct_Cb main_cb, 933 Eio_Main_Direct_Cb main_cb,
934 Eio_Done_Cb done_cb, 934 Eio_Done_Cb done_cb,
935 Eio_Error_Cb error_cb, 935 Eio_Error_Cb error_cb,
@@ -945,7 +945,12 @@ eio_dir_stat_ls(const char *dir,
945 async = malloc(sizeof(Eio_File_Dir_Ls)); 945 async = malloc(sizeof(Eio_File_Dir_Ls));
946 EINA_SAFETY_ON_NULL_RETURN_VAL(async, NULL); 946 EINA_SAFETY_ON_NULL_RETURN_VAL(async, NULL);
947 947
948 async->filter_cb = filter_cb; 948 /* Eio_Filter_Direct_Cb must be casted to Eio_Filter_Dir_Cb here
949 * because we keep the Eio_File_Dir_Ls pointing to that variant
950 * where info can be modified, but in our case it's already doing
951 * stat() then it shouldn't be needed!
952 */
953 async->filter_cb = (Eio_Filter_Dir_Cb)filter_cb;
949 async->main_cb = main_cb; 954 async->main_cb = main_cb;
950 async->ls.directory = eina_stringshare_add(dir); 955 async->ls.directory = eina_stringshare_add(dir);
951 956