raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=64190277ea68e1275b8747b9111e33c4bf7ea801

commit 64190277ea68e1275b8747b9111e33c4bf7ea801
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Thu Nov 8 13:42:57 2018 +0000

    eeze test - warn - fix ecore event callback prototypes
---
 src/bin/eeze/eeze_umount/eeze_umount.c | 20 ++++++++++----------
 1 file 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 =
    }
 };
 
-void
-_unmount_cb(void *data, int type, Eeze_Event_Disk_Unmount *e)
+static Eina_Bool
+_unmount_cb(void *data EINA_UNUSED, int type EINA_UNUSED, void *info)
 {
-   (void)data;
-   (void)type;
+   Eeze_Event_Disk_Unmount *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 unmount 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
@@ -104,8 +104,8 @@ main(int argc, char *argv[])
         printf("[%s] is already unmounted!", dev);
         exit(1);
      }
-   ecore_event_handler_add(EEZE_EVENT_DISK_UNMOUNT, 
(Ecore_Event_Handler_Cb)_unmount_cb, NULL);
-   ecore_event_handler_add(EEZE_EVENT_DISK_ERROR, 
(Ecore_Event_Handler_Cb)_error_cb, NULL);
+   ecore_event_handler_add(EEZE_EVENT_DISK_UNMOUNT, _unmount_cb, NULL);
+   ecore_event_handler_add(EEZE_EVENT_DISK_ERROR, _error_cb, NULL);
    if (!eeze_disk_unmount(disk))
      {
         printf("unmount operation could not be started!\n");

-- 


Reply via email to