forked from enlightenment/efl
eeze mount tool - warn - fix prototypes used for ecore events
This commit is contained in:
parent
7847af7f57
commit
8da330739c
|
@ -29,24 +29,24 @@ static const Ecore_Getopt opts =
|
|||
}
|
||||
};
|
||||
|
||||
void
|
||||
_mount_cb(void *data, int type, Eeze_Event_Disk_Mount *e)
|
||||
static Eina_Bool
|
||||
_mount_cb(void *data EINA_UNUSED, int type EINA_UNUSED, void *info)
|
||||
{
|
||||
(void)data;
|
||||
(void)type;
|
||||
Eeze_Event_Disk_Mount *e = info;
|
||||
printf("Success!\n");
|
||||
eeze_disk_free(e->disk);
|
||||
ecore_main_loop_quit();
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
void
|
||||
_error_cb(void *data, int type, Eeze_Event_Disk_Error *de)
|
||||
static Eina_Bool
|
||||
_error_cb(void *data EINA_UNUSED, int type EINA_UNUSED, void *info)
|
||||
{
|
||||
(void)data;
|
||||
(void)type;
|
||||
Eeze_Event_Disk_Error *de = info;
|
||||
printf("Could not mount disk with /dev/ path: %s!\n", eeze_disk_devpath_get(de->disk));
|
||||
eeze_disk_free(de->disk);
|
||||
ecore_main_loop_quit();
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -116,8 +116,8 @@ main(int argc, char *argv[])
|
|||
eeze_disk_mountopts_set(disk, f | EEZE_DISK_MOUNTOPT_LOOP);
|
||||
}
|
||||
}
|
||||
ecore_event_handler_add(EEZE_EVENT_DISK_MOUNT, (Ecore_Event_Handler_Cb)_mount_cb, NULL);
|
||||
ecore_event_handler_add(EEZE_EVENT_DISK_ERROR, (Ecore_Event_Handler_Cb)_error_cb, NULL);
|
||||
ecore_event_handler_add(EEZE_EVENT_DISK_MOUNT, _mount_cb, NULL);
|
||||
ecore_event_handler_add(EEZE_EVENT_DISK_ERROR, _error_cb, NULL);
|
||||
eeze_disk_mountopts_get(disk);
|
||||
if (!eeze_disk_mount(disk))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue