#include <Ecore.h>
#include <Eio.h>
 
static void
{
      {
         break;
         break;
      }
}
 
static void
_test_done_cb(
void *data, 
Eio_File *handler)
{
   printf("copy done\n");
}
 
static void
_test_error_cb(
int error, 
Eio_File *handler, 
void *data)
{
   fprintf(stderr, "error: [%s]\n", strerror(error));
}
 
int
main(int argc, char **argv)
{
 
   if (argc != 3)
     {
        fprintf(stderr, "eio_cp source_file destination_file\n");
        return -1;
     }
 
 
                     _test_notify_cb,
                     _test_done_cb,
                     _test_error_cb,
                     NULL);
 
 
 
   return 0;
}
@ EIO_FILE_COPY
I/O operation is about a specific file copy.
Definition: Eio_Legacy.h:109
@ EIO_DIR_COPY
I/O operation is about a specific directory copy.
Definition: Eio_Legacy.h:111
EAPI int ecore_shutdown(void)
Shuts down connections, signal handlers sockets etc.
Definition: ecore.c:366
EAPI int ecore_init(void)
Sets up connections, signal handlers, sockets etc.
Definition: ecore.c:225
void ecore_main_loop_quit(void)
Quits the main loop once all the events currently on the queue have been processed.
Definition: ecore_main.c:1308
void ecore_main_loop_begin(void)
Runs the application main loop.
Definition: ecore_main.c:1298
int eio_init(void)
Initialize eio and all its required submodule.
Definition: eio_main.c:276
int eio_shutdown(void)
Shutdown eio and all its submodule if possible.
Definition: eio_main.c:340
Eio_File * eio_dir_copy(const char *source, const char *dest, Eio_Filter_Direct_Cb filter_cb, Eio_Progress_Cb progress_cb, Eio_Done_Cb done_cb, Eio_Error_Cb error_cb, const void *data)
Copy a directory and its content asynchronously.
Definition: eio_dir.c:849
struct _Eio_File Eio_File
Generic asynchronous I/O reference.
Definition: Eio.h:72
Represents the current progress of the operation.
Definition: Eio_Legacy.h:176
float percent
Percent done for the I/O operation.
Definition: Eio_Legacy.h:181
long long current
Current step in the I/O operation.
Definition: Eio_Legacy.h:179
const char * dest
target of the I/O operation
Definition: Eio_Legacy.h:184
long long max
Number of total steps to complete this I/O.
Definition: Eio_Legacy.h:180
Eio_File_Op op
I/O type.
Definition: Eio_Legacy.h:177