efl/legacy
Cedric BAIL 7088845157 * eio: add eio_file_move (completly asynchronous and non
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
2010-09-28 09:05:51 +00:00
..
ecore first part of ssl rerererewrite: split functions, move stuff out of prepare(), and add verification for gnutls clients 2010-09-28 03:16:08 +00:00
edje And use Eina_Bool return values too. 2010-09-28 00:25:54 +00:00
eet * eet: fix doc about eddc_size. 2010-09-22 09:50:26 +00:00
eeze fix doxy list 2010-09-20 20:07:24 +00:00
efreet Fix typo. 2010-09-26 16:30:14 +00:00
eina Exclude win from prio drop implementation 2010-09-23 20:58:19 +00:00
eio * eio: add eio_file_move (completly asynchronous and non 2010-09-28 09:05:51 +00:00
embryo api cleanups too. 2010-09-22 14:21:55 +00:00
emotion export play_length as well. 2010-09-28 05:33:53 +00:00
ethumb yeah, we know it is unstable ;-) 2010-09-22 21:30:15 +00:00
evas make sure that at any point if gl barfs... abort then. 2010-09-28 04:13:28 +00:00
evil * src/lib/Makefile.am: 2010-09-14 21:24:25 +00:00