forked from enlightenment/efl
* eio: break Eio error callback API to match the rest of the API.
SVN revision: 53986
This commit is contained in:
parent
4cd1f2ff09
commit
9b279fa367
|
@ -118,7 +118,7 @@ typedef void (*Eio_Stat_Cb)(void *data, const struct stat *stat);
|
||||||
typedef void (*Eio_Progress_Cb)(void *data, const Eio_Progress *info);
|
typedef void (*Eio_Progress_Cb)(void *data, const Eio_Progress *info);
|
||||||
|
|
||||||
typedef void (*Eio_Done_Cb)(void *data);
|
typedef void (*Eio_Done_Cb)(void *data);
|
||||||
typedef void (*Eio_Error_Cb)(int error, void *data);
|
typedef void (*Eio_Error_Cb)(void *data, int error);
|
||||||
|
|
||||||
struct _Eio_Progress
|
struct _Eio_Progress
|
||||||
{
|
{
|
||||||
|
|
|
@ -64,7 +64,7 @@
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* static void
|
* static void
|
||||||
* _test_error_cb(int error, void *data)
|
* _test_error_cb(void *data, int error)
|
||||||
* {
|
* {
|
||||||
* fprintf(stderr, "error: [%s]\n", strerror(error));
|
* fprintf(stderr, "error: [%s]\n", strerror(error));
|
||||||
* ecore_main_loop_quit();
|
* ecore_main_loop_quit();
|
||||||
|
@ -409,7 +409,7 @@ _eio_file_move_unlink_done(void *data)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_eio_file_move_unlink_error(int error, void *data)
|
_eio_file_move_unlink_error(void *data, int error)
|
||||||
{
|
{
|
||||||
Eio_File_Move *move = data;
|
Eio_File_Move *move = data;
|
||||||
|
|
||||||
|
@ -435,7 +435,7 @@ _eio_file_move_copy_done(void *data)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_eio_file_move_copy_error(int error, void *data)
|
_eio_file_move_copy_error(void *data, int error)
|
||||||
{
|
{
|
||||||
Eio_File_Move *move = data;
|
Eio_File_Move *move = data;
|
||||||
|
|
||||||
|
|
|
@ -248,7 +248,7 @@ void
|
||||||
eio_file_error(Eio_File *common)
|
eio_file_error(Eio_File *common)
|
||||||
{
|
{
|
||||||
if (common->error_cb)
|
if (common->error_cb)
|
||||||
common->error_cb(common->error, (void*) common->data);
|
common->error_cb((void*) common->data, common->error);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue