yakov pushed a commit to branch master.

http://git.enlightenment.org/tools/erigo.git/commit/?id=9296f66e7455f31ff9d0409f0a04335727598167

commit 9296f66e7455f31ff9d0409f0a04335727598167
Author: Yakov Goldberg <yako...@samsung.com>
Date:   Tue Mar 1 14:10:44 2016 +0200

    Adapt generator to new Eo callbacks signatures
---
 src/lib/generator.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/lib/generator.c b/src/lib/generator.c
index 2e5005b..f53ead8 100644
--- a/src/lib/generator.c
+++ b/src/lib/generator.c
@@ -791,7 +791,7 @@ _wdg_creation_function_generate(Gui_Session *session, 
Gui_Widget *wdg, Widget_Co
           {
              eina_strbuf_prepend_printf(head,
                    "static Eina_Bool\n"
-                   "_pubs_free_cb(void *data, Eo *obj EINA_UNUSED, const 
Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED)\n"
+                   "_pubs_free_cb(void *data, const Eo_Event *event 
EINA_UNUSED)\n"
                    "{\n"
                    "   free(data);\n"
                    "   return EINA_TRUE;\n"
@@ -947,7 +947,7 @@ _wdg_cb_add_generate(Gui_Session *session, const Gui_Widget 
*wdg, const Gui_Widg
           {
              eina_strbuf_append_printf(_wdg_cb_type_foo,
                    "static Eina_Bool\n"
-                   "%s(void *data EINA_UNUSED, Eo *obj EINA_UNUSED, const 
Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED)\n"
+                   "%s(void *data, Eo *obj, const Eo_Event *event)\n"
                    "{\n",
                    _wdg_cb_type_str
                    );
@@ -1059,7 +1059,7 @@ _wdg_cb_add_generate(Gui_Session *session, const 
Gui_Widget *wdg, const Gui_Widg
                         else
                           {
                              eina_strbuf_append_printf(_wdg_cb_type_foo,
-                                   "   %s(data, obj, desc, event_info);\n",
+                                   "   %s(data, event);\n",
                                    cb_name);
                           }
                      }
@@ -1155,7 +1155,7 @@ _ctx_generate(Global_Gen_Context *gl_ctx)
                        else
                          {
                             eina_strbuf_append_printf(resources_buf,
-                                  "extern Eina_Bool\n%s(void *data, Eo *obj, 
const Eo_Event_Description *desc, void *event_info);\n",
+                                  "extern Eina_Bool\n%s(void *data, const 
Eo_Event *event);\n",
                                   resource_value_get(res));
                          }
                     }

-- 


Reply via email to