summaryrefslogtreecommitdiff
path: root/src/lib/emotion
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 /src/lib/emotion
parentfce52b10310c1a7d6a9419ec71fcb5f53c7f9d8e (diff)
emotion: fix Windows compilation.
Diffstat (limited to 'src/lib/emotion')
-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 3cf11b2d24..dff58e7c22 100644
--- a/src/lib/emotion/emotion_webcam.c
+++ b/src/lib/emotion/emotion_webcam.c
@@ -220,19 +220,6 @@ _emotion_process_webcam(void *data)
220} 220}
221 221
222static void 222static void
223_emotion_enumerate_all_webcams(void)
224{
225 Eina_List *devices;
226
227 if (_emotion_webcams->init) return ;
228 devices = eeze_udev_find_by_type(EEZE_UDEV_TYPE_V4L, NULL);
229
230 _emotion_webcams->check_list = devices;
231 _emotion_webcams->idler = ecore_idler_add(_emotion_process_webcam,
232 _emotion_webcams);
233}
234
235static void
236_emotion_eeze_events(const char *syspath, 223_emotion_eeze_events(const char *syspath,
237 Eeze_Udev_Event ev, 224 Eeze_Udev_Event ev,
238 void *data EINA_UNUSED, 225 void *data EINA_UNUSED,
@@ -269,6 +256,22 @@ _emotion_eeze_events(const char *syspath,
269 256
270#endif 257#endif
271 258
259static void
260_emotion_enumerate_all_webcams(void)
261{
262 Eina_List *devices;
263
264#ifdef HAVE_EEZE
265 if (_emotion_webcams->init) return ;
266 devices = eeze_udev_find_by_type(EEZE_UDEV_TYPE_V4L, NULL);
267
268 _emotion_webcams->check_list = devices;
269 _emotion_webcams->idler = ecore_idler_add(_emotion_process_webcam,
270 _emotion_webcams);
271#endif
272}
273
274
272Eina_Bool emotion_webcam_init(void) 275Eina_Bool emotion_webcam_init(void)
273{ 276{
274 EMOTION_WEBCAM_UPDATE = ecore_event_type_new(); 277 EMOTION_WEBCAM_UPDATE = ecore_event_type_new();