SVN revision: 53265
fallback to mmap/write with huge tlb when not). That what an eio_cp would look like : #include <Ecore.h> #include <Eio.h> static void _test_progress_cb(void *data, const Eio_Progress *info) { printf("%f (%zi / %zi octets)\n", info->percent, info->current, info->max); } static void _test_done_cb(void *data) { printf("copy done\n"); ecore_main_loop_quit(); } static void _test_error_cb(int error, void *data) { fprintf(stderr, "error: [%s]\n", strerror(error)); ecore_main_loop_quit(); } int main(int argc, char **argv) { Eio_File *cp; if (argc != 3) { fprintf(stderr, "eio_cp source_file destination_file\n"); return -1; } ecore_init(); eio_init(); cp = eio_file_copy(argv[1], argv[2], _test_progress_cb, _test_done_cb, _test_error_cb, NULL); ecore_main_loop_begin(); eio_shutdown(); ecore_shutdown(); return 0; } SVN revision: 52787
SVN revision: 51955
SVN revision: 51227
NOTE: right now only help with file listing and provide a wrapper around eina_file_ls and eina_file_direct_ls and ecore_long_run. But the idea is to do the same with all Ecore_File code so that one day we can remove Ecore_File. SVN revision: 50429