struct _Emotion_Video_Module
{
- unsigned char (*init) (Evas_Object *obj, void **video, Emotion_Module_Options *opt);
- int (*shutdown) (void *video);
unsigned char (*file_open) (const char *file, Evas_Object *obj, void *video);
void (*file_close) (void *ef);
void (*play) (void *ef, double pos);
static const Emotion_Video_Module em_module =
{
- em_init, /* init */
- em_shutdown, /* shutdown */
em_file_open, /* file_open */
em_file_close, /* file_close */
em_play, /* play */
}
- if (!em_module.init(obj, video, opt)) {
+ if (!em_init(obj, video, opt)) {
return EINA_FALSE;
}
static void module_close(Emotion_Video_Module *module EINA_UNUSED, void *video)
{
- em_module.shutdown(video);
+ em_shutdown(video);
}
static const Emotion_Video_Module em_module =
{
- em_init, /* init */
- em_shutdown, /* shutdown */
em_file_open, /* file_open */
em_file_close, /* file_close */
em_play, /* play */
}
}
- if (!em_module.init(obj, video, opt))
+ if (!em_init(obj, video, opt))
return EINA_FALSE;
#ifdef HAVE_ECORE_X
module_close(Emotion_Video_Module *module EINA_UNUSED,
void *video)
{
- em_module.shutdown(video);
+ em_shutdown(video);
#ifdef HAVE_ECORE_X
if (_ecore_x_available)
static const Emotion_Video_Module em_module =
{
- em_init, /* init */
- em_shutdown, /* shutdown */
em_file_open, /* file_open */
em_file_close, /* file_close */
em_play, /* play */
}
}
- if (!em_module.init(obj, video, opt))
+ if (!em_init(obj, video, opt))
return EINA_FALSE;
*module = &em_module;
static void
module_close(Emotion_Video_Module *module EINA_UNUSED, void *video)
{
- em_module.shutdown(video);
+ em_shutdown(video);
}
Eina_Bool