summaryrefslogtreecommitdiff
path: root/src/lib/emotion/emotion_modules.c
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-11 00:31:56 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-11 00:31:56 +0000
commit619d6033f36fad2be7b165757880bdd4e72e45c2 (patch)
tree5d08297231aa6ea30e75b1f0b8d12361b4ef7962 /src/lib/emotion/emotion_modules.c
parent6e963a6118a515d71abb71dc07bfaf7de32c630c (diff)
efl/emotion: remove handle from wrong place.
that handle should live elsewhere, it was a hack. SVN revision: 82598
Diffstat (limited to 'src/lib/emotion/emotion_modules.c')
-rw-r--r--src/lib/emotion/emotion_modules.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/emotion/emotion_modules.c b/src/lib/emotion/emotion_modules.c
index 41168565a7..3e8a18a320 100644
--- a/src/lib/emotion/emotion_modules.c
+++ b/src/lib/emotion/emotion_modules.c
@@ -152,6 +152,7 @@ _emotion_module_unregister(const char *name)
152 152
153struct _Emotion_Engine_Instance 153struct _Emotion_Engine_Instance
154{ 154{
155 Eina_Emotion_Plugins *plugin;
155 Emotion_Video_Module *api; 156 Emotion_Video_Module *api;
156 Evas_Object *obj; 157 Evas_Object *obj;
157 char *name; 158 char *name;
@@ -238,7 +239,7 @@ emotion_engine_instance_new(const char *name, Evas_Object *obj, Emotion_Module_O
238 { 239 {
239 Emotion_Engine_Instance *inst = calloc(1, sizeof(Emotion_Engine_Instance)); 240 Emotion_Engine_Instance *inst = calloc(1, sizeof(Emotion_Engine_Instance));
240 INF("opened %s, mod=%p, video=%p", name, mod, data); 241 INF("opened %s, mod=%p, video=%p", name, mod, data);
241 mod->plugin = plugin; 242 inst->plugin = plugin;
242 inst->api = mod; 243 inst->api = mod;
243 inst->obj = obj; 244 inst->obj = obj;
244 inst->data = data; 245 inst->data = data;
@@ -258,7 +259,7 @@ void
258emotion_engine_instance_del(Emotion_Engine_Instance *inst) 259emotion_engine_instance_del(Emotion_Engine_Instance *inst)
259{ 260{
260 EINA_SAFETY_ON_NULL_RETURN(inst); 261 EINA_SAFETY_ON_NULL_RETURN(inst);
261 inst->api->plugin->close(inst->api, inst->data); // TODO: weird api 262 inst->plugin->close(inst->api, inst->data); // TODO: weird api
262} 263}
263 264
264Eina_Bool 265Eina_Bool