summaryrefslogtreecommitdiff
path: root/src/bin/eeze
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-11-08 13:42:57 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-11-09 11:43:59 +0000
commit64190277ea68e1275b8747b9111e33c4bf7ea801 (patch)
tree6506b140f44959dcd89fca4d080801636a8980b0 /src/bin/eeze
parent95a538d1f86101fae6b0c28fc8cd130a6c076adb (diff)
eeze test - warn - fix ecore event callback prototypes
Diffstat (limited to 'src/bin/eeze')
-rw-r--r--src/bin/eeze/eeze_umount/eeze_umount.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/bin/eeze/eeze_umount/eeze_umount.c b/src/bin/eeze/eeze_umount/eeze_umount.c
index 35df07fa80..ec9c2824ee 100644
--- a/src/bin/eeze/eeze_umount/eeze_umount.c
+++ b/src/bin/eeze/eeze_umount/eeze_umount.c
@@ -29,24 +29,24 @@ static const Ecore_Getopt opts =
29 } 29 }
30}; 30};
31 31
32void 32static Eina_Bool
33_unmount_cb(void *data, int type, Eeze_Event_Disk_Unmount *e) 33_unmount_cb(void *data EINA_UNUSED, int type EINA_UNUSED, void *info)
34{ 34{
35 (void)data; 35 Eeze_Event_Disk_Unmount *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 unmount disk with /dev/ path: %s!\n", eeze_disk_devpath_get(de->disk)); 46 printf("Could not unmount 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
@@ -104,8 +104,8 @@ main(int argc, char *argv[])
104 printf("[%s] is already unmounted!", dev); 104 printf("[%s] is already unmounted!", dev);
105 exit(1); 105 exit(1);
106 } 106 }
107 ecore_event_handler_add(EEZE_EVENT_DISK_UNMOUNT, (Ecore_Event_Handler_Cb)_unmount_cb, NULL); 107 ecore_event_handler_add(EEZE_EVENT_DISK_UNMOUNT, _unmount_cb, NULL);
108 ecore_event_handler_add(EEZE_EVENT_DISK_ERROR, (Ecore_Event_Handler_Cb)_error_cb, NULL); 108 ecore_event_handler_add(EEZE_EVENT_DISK_ERROR, _error_cb, NULL);
109 if (!eeze_disk_unmount(disk)) 109 if (!eeze_disk_unmount(disk))
110 { 110 {
111 printf("unmount operation could not be started!\n"); 111 printf("unmount operation could not be started!\n");