135a0f570a
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 |
||
---|---|---|
.. | ||
m4 | ||
src | ||
AUTHORS | ||
COPYING | ||
ChangeLog | ||
INSTALL | ||
Makefile.am | ||
NEWS | ||
README | ||
autogen.sh | ||
configure.ac | ||
eio.pc.in |
README
Enlightenment Input Output Library ================================== This library is intended to provide non blocking IO by using thread for all operation that may block. It depends only on eina and ecore right now. It should integrate all the features/functions of Ecore_File that could block. This should become one day part of what we call the EFL and be a dependence of E17. Feel free to contribute, help is always appreciated !