7088845157
blocking move). It first try a rename, then fallback to an eio_file_copy + eio_file_unlink. Small example on how to use it : #include <Ecore.h> #include <Eio.h> static void _test_done_cb(void *data) { printf("move 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_move(argv[1], argv[2], NULL, _test_done_cb, _test_error_cb, NULL); ecore_main_loop_begin(); eio_shutdown(); ecore_shutdown(); return 0; } SVN revision: 52845 |
||
---|---|---|
.. | ||
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 !