disregard previous commit, must have been high
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 14 Feb 2011 01:32:40 +0000 (01:32 +0000)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 14 Feb 2011 01:32:40 +0000 (01:32 +0000)
SVN revision: 56999

legacy/eeze/src/lib/eeze_disk_mount.c

index be31325..d3bcc37 100644 (file)
@@ -20,7 +20,6 @@ EAPI int EEZE_EVENT_DISK_MOUNT = 0;
 EAPI int EEZE_EVENT_DISK_UNMOUNT = 0;
 EAPI int EEZE_EVENT_DISK_ERROR = 0;
 static Ecore_Event_Handler *_mount_handler = NULL;
-static const char *eeze_mount_handler_id = "eeze_id_string";
 
 /*
  *
@@ -55,14 +54,11 @@ _eeze_disk_mount_error_handler(Eeze_Disk *disk, const char *error)
 }
 
 static Eina_Bool
-_eeze_disk_mount_result_handler(void *data, int type __UNUSED__, Ecore_Exe_Event_Del *ev)
+_eeze_disk_mount_result_handler(void *data __UNUSED__, int type __UNUSED__, Ecore_Exe_Event_Del *ev)
 {
    Eeze_Disk *disk;
    Eeze_Event_Disk_Mount *e;
 
-   if (data != eeze_mount_handler_id)
-     return ECORE_CALLBACK_PASS_ON;
-
    if ((!ev) || (!ev->exe))
      return ECORE_CALLBACK_RENEW;
    if (!(disk = ecore_exe_data_get(ev->exe)))
@@ -138,7 +134,7 @@ eeze_mount_init(void)
    EEZE_EVENT_DISK_UNMOUNT = ecore_event_type_new();
    EEZE_EVENT_DISK_ERROR = ecore_event_type_new();
    _mount_handler = ecore_event_handler_add(ECORE_EXE_EVENT_DEL,
-                                           (Ecore_Event_Handler_Cb)_eeze_disk_mount_result_handler, eeze_mount_handler_id);
+                                           (Ecore_Event_Handler_Cb)_eeze_disk_mount_result_handler, NULL);
    return eeze_libmount_init();
 }