summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@samsung.com>2013-12-16 17:03:10 +0900
committerCedric BAIL <cedric.bail@samsung.com>2013-12-16 17:03:10 +0900
commite131580aba4b498e4a1cb9b53240b595ecf0fa67 (patch)
tree7369a629fb9f8d52ffa70f1647912fa159a7426e
parentfce52b10310c1a7d6a9419ec71fcb5f53c7f9d8e (diff)
emotion: fix Windows compilation.
-rw-r--r--src/lib/emotion/emotion_webcam.c29
1 files changed, 16 insertions, 13 deletions
diff --git a/src/lib/emotion/emotion_webcam.c b/src/lib/emotion/emotion_webcam.c
index 3cf11b2d2..dff58e7c2 100644
--- a/src/lib/emotion/emotion_webcam.c
+++ b/src/lib/emotion/emotion_webcam.c
@@ -220,19 +220,6 @@ _emotion_process_webcam(void *data)
}
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,
void *data EINA_UNUSED,
@@ -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();