summaryrefslogtreecommitdiff
path: root/legacy/emotion/src/modules/xine
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2009-12-30 10:49:06 +0000
committerCedric BAIL <cedric.bail@free.fr>2009-12-30 10:49:06 +0000
commit65c4336b0b6f436300c83c345ac999a6c3dc22f9 (patch)
tree54054308788092f1a5085fa9181c096e776ede67 /legacy/emotion/src/modules/xine
parent1c1663bd88a72a7edcbe987fc6e2aff31a4b8c01 (diff)
* emotion: Switch to Eina module.
TODO: Add configure option to build module statically. SVN revision: 44781
Diffstat (limited to '')
-rw-r--r--legacy/emotion/src/modules/xine/emotion_xine.c31
-rw-r--r--legacy/emotion/src/modules/xine/emotion_xine.h7
2 files changed, 27 insertions, 11 deletions
diff --git a/legacy/emotion/src/modules/xine/emotion_xine.c b/legacy/emotion/src/modules/xine/emotion_xine.c
index 704e60f0b5..15d1556843 100644
--- a/legacy/emotion/src/modules/xine/emotion_xine.c
+++ b/legacy/emotion/src/modules/xine/emotion_xine.c
@@ -1526,25 +1526,44 @@ static Emotion_Video_Module em_module =
1526 NULL /* handle */ 1526 NULL /* handle */
1527}; 1527};
1528 1528
1529EAPI unsigned char 1529static Eina_Bool
1530module_open(Evas_Object *obj, const Emotion_Video_Module **module, void **video, Emotion_Module_Options *opt) 1530module_open(Evas_Object *obj, const Emotion_Video_Module **module, void **video, Emotion_Module_Options *opt)
1531{ 1531{
1532 if (!module) 1532 if (!module)
1533 return 0; 1533 return EINA_FALSE;
1534 1534
1535 if (!em_module.init(obj, video, opt)) 1535 if (!em_module.init(obj, video, opt))
1536 return 0; 1536 return EINA_FALSE;
1537 1537
1538 *module = &em_module; 1538 *module = &em_module;
1539 return 1; 1539 return EINA_TRUE;
1540} 1540}
1541 1541
1542EAPI void 1542static void
1543module_close(Emotion_Video_Module *module, void *video) 1543module_close(Emotion_Video_Module *module, void *video)
1544{ 1544{
1545 em_module.shutdown(video); 1545 em_module.shutdown(video);
1546} 1546}
1547 1547
1548Eina_Bool
1549xine_module_init(void)
1550{
1551 return _emotion_module_register("xine", module_open, module_close);
1552}
1553
1554void
1555xine_module_shutdown(void)
1556{
1557 _emotion_module_unregister("xine");
1558}
1559
1560#ifndef EINA_STATIC_BUILD_XINE
1561
1562EINA_MODULE_INIT(xine_module_init);
1563EINA_MODULE_SHUTDOWN(xine_module_shutdown);
1564
1565#endif
1566
1548#if 0 1567#if 0
1549void 1568void
1550em_debug(Emotion_Xine_Video *ev) 1569em_debug(Emotion_Xine_Video *ev)
diff --git a/legacy/emotion/src/modules/xine/emotion_xine.h b/legacy/emotion/src/modules/xine/emotion_xine.h
index 3a4b464a20..e5cf122588 100644
--- a/legacy/emotion/src/modules/xine/emotion_xine.h
+++ b/legacy/emotion/src/modules/xine/emotion_xine.h
@@ -43,8 +43,8 @@ struct _Emotion_Xine_Video
43 unsigned char video_mute : 1; 43 unsigned char video_mute : 1;
44 unsigned char audio_mute : 1; 44 unsigned char audio_mute : 1;
45 unsigned char spu_mute : 1; 45 unsigned char spu_mute : 1;
46 unsigned char opt_no_video : 1; 46 Eina_Bool opt_no_video : 1;
47 unsigned char opt_no_audio : 1; 47 Eina_Bool opt_no_audio : 1;
48 volatile unsigned char delete_me : 1; 48 volatile unsigned char delete_me : 1;
49 volatile unsigned char no_time : 1; 49 volatile unsigned char no_time : 1;
50 volatile unsigned char opening : 1; 50 volatile unsigned char opening : 1;
@@ -85,7 +85,4 @@ struct _Emotion_Xine_Event
85 int mtype; 85 int mtype;
86}; 86};
87 87
88EAPI unsigned char module_open(Evas_Object *obj, const Emotion_Video_Module **module, void **video, Emotion_Module_Options *opt);
89EAPI void module_close(Emotion_Video_Module *module, void *video);
90
91#endif 88#endif