From e131580aba4b498e4a1cb9b53240b595ecf0fa67 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Mon, 16 Dec 2013 17:03:10 +0900 Subject: [PATCH] emotion: fix Windows compilation. --- src/lib/emotion/emotion_webcam.c | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/src/lib/emotion/emotion_webcam.c b/src/lib/emotion/emotion_webcam.c index 3cf11b2d24..dff58e7c22 100644 --- a/src/lib/emotion/emotion_webcam.c +++ b/src/lib/emotion/emotion_webcam.c @@ -219,19 +219,6 @@ _emotion_process_webcam(void *data) return EINA_TRUE; } -static void -_emotion_enumerate_all_webcams(void) -{ - Eina_List *devices; - - if (_emotion_webcams->init) return ; - devices = eeze_udev_find_by_type(EEZE_UDEV_TYPE_V4L, NULL); - - _emotion_webcams->check_list = devices; - _emotion_webcams->idler = ecore_idler_add(_emotion_process_webcam, - _emotion_webcams); -} - static void _emotion_eeze_events(const char *syspath, Eeze_Udev_Event ev, @@ -269,6 +256,22 @@ _emotion_eeze_events(const char *syspath, #endif +static void +_emotion_enumerate_all_webcams(void) +{ + Eina_List *devices; + +#ifdef HAVE_EEZE + if (_emotion_webcams->init) return ; + devices = eeze_udev_find_by_type(EEZE_UDEV_TYPE_V4L, NULL); + + _emotion_webcams->check_list = devices; + _emotion_webcams->idler = ecore_idler_add(_emotion_process_webcam, + _emotion_webcams); +#endif +} + + Eina_Bool emotion_webcam_init(void) { EMOTION_WEBCAM_UPDATE = ecore_event_type_new();