summaryrefslogtreecommitdiff
path: root/src/bin/eeze
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-11-08 15:28:23 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-11-09 11:44:00 +0000
commit8da330739ca40047ecd2e81c2f43a80868e5ffd4 (patch)
treef6ed9b658f8b213c5ce8549177f1886a04b4d6ef /src/bin/eeze
parent7847af7f5734cdd3f098e6f8af4d07a012d0ccc7 (diff)
eeze mount tool - warn - fix prototypes used for ecore events
Diffstat (limited to 'src/bin/eeze')
-rw-r--r--src/bin/eeze/eeze_mount/eeze_mount.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/bin/eeze/eeze_mount/eeze_mount.c b/src/bin/eeze/eeze_mount/eeze_mount.c
index 929437629c..04c644f4ef 100644
--- a/src/bin/eeze/eeze_mount/eeze_mount.c
+++ b/src/bin/eeze/eeze_mount/eeze_mount.c
@@ -29,24 +29,24 @@ static const Ecore_Getopt opts =
29 } 29 }
30}; 30};
31 31
32void 32static Eina_Bool
33_mount_cb(void *data, int type, Eeze_Event_Disk_Mount *e) 33_mount_cb(void *data EINA_UNUSED, int type EINA_UNUSED, void *info)
34{ 34{
35 (void)data; 35 Eeze_Event_Disk_Mount *e = info;
36 (void)type;
37 printf("Success!\n"); 36 printf("Success!\n");
38 eeze_disk_free(e->disk); 37 eeze_disk_free(e->disk);
39 ecore_main_loop_quit(); 38 ecore_main_loop_quit();
39 return EINA_TRUE;
40} 40}
41 41
42void 42static Eina_Bool
43_error_cb(void *data, int type, Eeze_Event_Disk_Error *de) 43_error_cb(void *data EINA_UNUSED, int type EINA_UNUSED, void *info)
44{ 44{
45 (void)data; 45 Eeze_Event_Disk_Error *de = info;
46 (void)type;
47 printf("Could not mount disk with /dev/ path: %s!\n", eeze_disk_devpath_get(de->disk)); 46 printf("Could not mount disk with /dev/ path: %s!\n", eeze_disk_devpath_get(de->disk));
48 eeze_disk_free(de->disk); 47 eeze_disk_free(de->disk);
49 ecore_main_loop_quit(); 48 ecore_main_loop_quit();
49 return EINA_TRUE;
50} 50}
51 51
52int 52int
@@ -116,8 +116,8 @@ main(int argc, char *argv[])
116 eeze_disk_mountopts_set(disk, f | EEZE_DISK_MOUNTOPT_LOOP); 116 eeze_disk_mountopts_set(disk, f | EEZE_DISK_MOUNTOPT_LOOP);
117 } 117 }
118 } 118 }
119 ecore_event_handler_add(EEZE_EVENT_DISK_MOUNT, (Ecore_Event_Handler_Cb)_mount_cb, NULL); 119 ecore_event_handler_add(EEZE_EVENT_DISK_MOUNT, _mount_cb, NULL);
120 ecore_event_handler_add(EEZE_EVENT_DISK_ERROR, (Ecore_Event_Handler_Cb)_error_cb, NULL); 120 ecore_event_handler_add(EEZE_EVENT_DISK_ERROR, _error_cb, NULL);
121 eeze_disk_mountopts_get(disk); 121 eeze_disk_mountopts_get(disk);
122 if (!eeze_disk_mount(disk)) 122 if (!eeze_disk_mount(disk))
123 { 123 {