discomfitor pushed a commit to branch enlightenment-0.19.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=4606d34c5403a5355ceb3f8570123a2a9157de72

commit 4606d34c5403a5355ceb3f8570123a2a9157de72
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Mon Sep 21 17:26:05 2015 -0400

    add efl versioning for eeze backlight monitoring
---
 src/bin/e_backlight.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/bin/e_backlight.c b/src/bin/e_backlight.c
index 76850e1..4cd1669 100644
--- a/src/bin/e_backlight.c
+++ b/src/bin/e_backlight.c
@@ -339,6 +339,7 @@ _bl_anim(void *data, double pos)
 }
 
 #ifdef HAVE_EEZE
+#if (EFL_VERSION_MAJOR > 1) || (EFL_VERSION_MINOR >= 12)
 static void
 _bl_sys_change(const char *device, Eeze_Udev_Event event EINA_UNUSED, void 
*data EINA_UNUSED, Eeze_Udev_Watch *watch EINA_UNUSED)
 {
@@ -349,6 +350,7 @@ _bl_sys_change(const char *device, Eeze_Udev_Event event 
EINA_UNUSED, void *data
      }
    eina_stringshare_del(device);
 }
+#endif
 
 static void
 _bl_sys_find(void)
@@ -434,7 +436,9 @@ _bl_sys_find(void)
      }
    /* clear out preferred devs list */
    E_FREE_LIST(pdevs, eina_stringshare_del);
+#if (EFL_VERSION_MAJOR > 1) || (EFL_VERSION_MINOR >= 12)
    eeze_udev_watch_add(EEZE_UDEV_TYPE_BACKLIGHT, EEZE_UDEV_EVENT_CHANGE, 
_bl_sys_change, NULL);
+#endif
 }
 
 static void

-- 


Reply via email to