eolian: drop class function overriding
authorWonki Kim <wonki_.kim@samsung.com>
Thu, 7 Mar 2019 11:36:26 +0000 (20:36 +0900)
committerWonki Kim <wonki_.kim@samsung.com>
Fri, 8 Mar 2019 11:49:33 +0000 (20:49 +0900)
Until this commit eo did class functions as part of the vtable, which
enabled those functions to be overwritten in classes inheriting another
class. However in task T7675 we decided that this is not really good for
bindings, as most OOP languages do not support this sort of feature.

After this commit eolian realizes class function completly outside of
the vtable, the c-symbol that is the class funciton is now just directly
redirecting to a implementation, without the involvement of the vtable.

This also means a change to the syntax created by eo:

Calling before:
  class_function(CLASS_A);
Calling after:
   class_function();

Implementation before:
   class_function(const Eo *obj, void *pd) { ... }
Implementation after:
   class_function(void) { ... }

This fixes T7675.

Co-authored-by: lauromauro <lauromoura@expertisesolutions.com.br>
Reviewed-by: Daniel Kolesa <daniel@octaforge.org>
Differential Revision: https://phab.enlightenment.org/D7901

Change-Id: Id02dd1780b5b0e613af1ae353b36752a5941a948

54 files changed:
src/bin/elementary/test_efl_ui_text.c
src/bin/eolian/headers.c
src/bin/eolian/sources.c
src/bin/eolian_mono/eolian/mono/function_definition.hh
src/examples/ecore/efl_net_ip_address_example.c
src/examples/ecore/efl_net_socket_ssl_dialer_example.c
src/lib/ecore/ecore_event_message_handler.c
src/lib/ecore/ecore_events.c
src/lib/ecore/efl_app.c
src/lib/ecore/efl_core_proc_env.c
src/lib/ecore/efl_loop.c
src/lib/ecore_con/ecore_con_url.c
src/lib/ecore_con/efl_net_dialer_http.c
src/lib/ecore_con/efl_net_dialer_ssl.c
src/lib/ecore_con/efl_net_dialer_udp.c
src/lib/ecore_con/efl_net_ip_address.c
src/lib/ecore_con/efl_net_ssl_context.c
src/lib/edje/edje_util.c
src/lib/efl/interfaces/efl_text_markup_util.c
src/lib/elementary/efl_access_object.c
src/lib/elementary/efl_access_object.h
src/lib/elementary/efl_access_window.h
src/lib/elementary/efl_ui_dnd.c
src/lib/elementary/efl_ui_focus_layer.c
src/lib/elementary/efl_ui_focus_manager_calc.c
src/lib/elementary/efl_ui_focus_util.c
src/lib/elementary/efl_ui_widget.c
src/lib/elementary/efl_ui_win.c
src/lib/elementary/elm_access.c
src/lib/elementary/elm_atspi_bridge.c
src/lib/elementary/elm_entry.c
src/lib/elementary/elm_focus_legacy.c
src/lib/elementary/elm_menu.c
src/lib/elementary/elm_sys_notify.c
src/lib/elementary/elm_theme.c
src/lib/eo/eo_base_class.c
src/lib/eolian_cxx/grammar/function_definition.hpp
src/lib/evas/canvas/efl_input_event.c
src/tests/ecore/efl_app_suite.c
src/tests/ecore/efl_app_test_env.c
src/tests/ecore/efl_app_test_loop.c
src/tests/ecore/efl_app_test_loop_timer.c
src/tests/ecore_con/ecore_con_test_efl_net_ip_address.c
src/tests/efl_mono/libefl_mono_native_test.c
src/tests/elementary/efl_ui_model.c
src/tests/elementary/efl_ui_test_focus.c
src/tests/elementary/elm_test_genlist.c
src/tests/elementary/elm_test_win.c
src/tests/elementary/suite_helpers.c
src/tests/eo/signals/signals_main.c
src/tests/eolian/data/class_simple_ref.c
src/tests/eolian/data/function_as_argument_ref.c
src/tests/eolian/data/override_ref.c
src/tests/eolian/data/owning.eo.c

index f8280f0..1ef0873 100644 (file)
@@ -71,7 +71,7 @@ test_efl_ui_text_label(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, voi
    efl_text_multiline_set(en, EINA_TRUE);
 
    en = _create_label(win, bx);
-   markup = efl_text_markup_util_text_to_markup(EFL_TEXT_MARKUP_UTIL_CLASS,
+   markup = efl_text_markup_util_text_to_markup(
          "You can use the text -> markup helper\nto make coding easier.");
    efl_text_markup_set(en, markup);
    free(markup);
@@ -80,7 +80,7 @@ test_efl_ui_text_label(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, voi
    efl_text_multiline_set(en, EINA_TRUE);
 
    en = _create_label(win, bx);
-   markup = efl_text_markup_util_markup_to_text(EFL_TEXT_MARKUP_UTIL_CLASS,
+   markup = efl_text_markup_util_markup_to_text(
          "You can use markup -&gt; text helpers<ps>to make coding easier.");
    efl_text_set(en, markup);
    free(markup);
index 4ebf9a7..70520fc 100644 (file)
@@ -125,7 +125,7 @@ _gen_func(const Eolian_State *state, const Eolian_Function *fid,
    eina_stringshare_del(fcn);
 
    Eina_Strbuf *flagbuf = NULL;
-   int nidx = !legacy || !eolian_function_is_class(fid);
+   int nidx = !eolian_function_is_class(fid);
 
    eina_strbuf_append_char(buf, '(');
    if (nidx)
index eb2ad41..493ec1a 100644 (file)
@@ -386,8 +386,14 @@ _gen_func(const Eolian_Class *cl, const Eolian_Function *fid,
              eina_strbuf_append(params, ", ");
            eina_strbuf_append(params, prn);
 
-           eina_strbuf_append_printf(params_full, ", %s", ptn);
-           eina_strbuf_append_printf(params_full_imp, ", %s", ptn);
+           if (eina_strbuf_length_get(params_full) || !eolian_function_is_class(fid))
+             {
+                eina_strbuf_append(params_full, ", ");
+                eina_strbuf_append(params_full_imp, ", ");
+             }
+           eina_strbuf_append_printf(params_full, "%s", ptn);
+           eina_strbuf_append_printf(params_full_imp, "%s", ptn);
+
            if (ptn[strlen(ptn) - 1] != '*')
              {
                 eina_strbuf_append_char(params_full, ' ');
@@ -470,7 +476,8 @@ _gen_func(const Eolian_Class *cl, const Eolian_Function *fid,
              if (eina_strbuf_length_get(params))
                eina_strbuf_append(params, ", ");
 
-             eina_strbuf_append(params_full_imp, ", ");
+             if (eina_strbuf_length_get(params_full_imp) || !eolian_function_is_class(fid))
+               eina_strbuf_append(params_full_imp, ", ");
              eina_strbuf_append(params_full_imp, ptn);
              if (!had_star)
                eina_strbuf_append_char(params_full_imp, ' ');
@@ -480,7 +487,8 @@ _gen_func(const Eolian_Class *cl, const Eolian_Function *fid,
                eina_strbuf_append(params_full_imp, " EINA_UNUSED");
              eina_strbuf_append(params, prn);
 
-             eina_strbuf_append(params_full, ", ");
+             if (eina_strbuf_length_get(params_full) || !eolian_function_is_class(fid))
+               eina_strbuf_append(params_full, ", ");
              eina_strbuf_append(params_full, ptn);
              if (!had_star)
                eina_strbuf_append_char(params_full, ' ');
@@ -559,12 +567,17 @@ _gen_func(const Eolian_Class *cl, const Eolian_Function *fid,
              eina_strbuf_append(buf, func_suffix);
              /* ([const ]Eo *obj, Data_Type *pd, impl_full_params); */
              eina_strbuf_append_char(buf, '(');
-             if ((ftype == EOLIAN_PROP_GET) || eolian_function_object_is_const(fid))
-               eina_strbuf_append(buf, "const ");
-             eina_strbuf_append(buf, "Eo *obj, ");
-             eina_strbuf_append(buf, dt);
-             eina_strbuf_append(buf, " *pd");
+             if (!eolian_function_is_class(fid))
+               {
+                  if ((ftype == EOLIAN_PROP_GET) || eolian_function_object_is_const(fid))
+                    eina_strbuf_append(buf, "const ");
+                  eina_strbuf_append(buf, "Eo *obj, ");
+                  eina_strbuf_append(buf, dt);
+                  eina_strbuf_append(buf, " *pd");
+               }
              eina_strbuf_append(buf, eina_strbuf_string_get(params_full_imp));
+             if (eina_strbuf_length_get(params_full_imp) == 0 && eolian_function_is_class(fid))
+               eina_strbuf_append(buf, "void");
              eina_strbuf_append(buf, ");\n\n");
           }
 
@@ -635,7 +648,7 @@ _gen_func(const Eolian_Class *cl, const Eolian_Function *fid,
         eina_stringshare_del(dt);
      }
 
-   if (impl_same_class)
+   if (impl_same_class && !eolian_function_is_class(fid))
      {
         void *data;
         Eina_Iterator *itr = eolian_property_keys_get(fid, ftype);
@@ -746,6 +759,36 @@ _gen_func(const Eolian_Class *cl, const Eolian_Function *fid,
         eina_stringshare_del(lfn);
         eina_stringshare_del(eofn);
      }
+   if (impl_same_class && eolian_function_is_class(fid))
+     {
+        eina_strbuf_append(buf, "EOAPI ");
+        if (rtp)
+          eina_strbuf_append(buf, eolian_type_c_type_get(rtp, EOLIAN_C_TYPE_RETURN));
+        else
+          eina_strbuf_append(buf, "void");
+        eina_strbuf_append(buf, " ");
+        eina_strbuf_append(buf, eolian_function_full_c_name_get(fid, ftype, EINA_FALSE));
+        eina_strbuf_append(buf, "(");
+        if (eina_strbuf_length_get(params_full) == 0)
+          eina_strbuf_append(buf, "void");
+        else
+          eina_strbuf_append_buffer(buf, params_full);
+        eina_strbuf_append(buf, ")\n");
+        eina_strbuf_append(buf, "{\n");
+        eina_strbuf_append_printf(buf, "   %s();\n", eolian_class_c_get_function_name_get(cl));
+        if (rtp)
+          eina_strbuf_append(buf, "   return ");
+        else
+          eina_strbuf_append(buf, "   ");
+        eina_strbuf_append_printf(buf, "_%s", ocnamel);
+        eina_strbuf_append_char(buf, '_');
+        eina_strbuf_append(buf, eolian_function_name_get(fid));
+        eina_strbuf_append(buf, func_suffix);
+        eina_strbuf_append(buf, "(");
+        eina_strbuf_append_buffer(buf, params);
+        eina_strbuf_append(buf, ");\n");
+        eina_strbuf_append(buf, "}\n");
+     }
 
    free(cname);
    free(cnamel);
@@ -797,9 +840,9 @@ _gen_initializer(const Eolian_Class *cl, Eina_Strbuf *buf)
    eina_strbuf_append(buf, "\nstatic Eina_Bool\n_");
    eina_strbuf_append(buf, cnamel);
    eina_strbuf_append(buf, "_class_initializer(Efl_Class *klass)\n{\n");
-   eina_strbuf_append(buf, "   const Efl_Object_Ops *opsp = NULL, *copsp = NULL;\n\n");
+   eina_strbuf_append(buf, "   const Efl_Object_Ops *opsp = NULL;\n\n");
 
-   Eina_Strbuf *ops = eina_strbuf_new(), *cops = eina_strbuf_new();
+   Eina_Strbuf *ops = eina_strbuf_new();
 
    /* start over with clean itearator */
    const Eolian_Implement *imp;
@@ -810,13 +853,12 @@ _gen_initializer(const Eolian_Class *cl, Eina_Strbuf *buf)
         Eolian_Function_Type ftype;
         const Eolian_Function *fid = eolian_implement_function_get(imp, &ftype);
 
+        if (eolian_function_is_class(fid)) continue;
+
         Eina_Strbuf *obuf = ops;
-        if (eolian_function_is_class(fid))
-          obuf = cops;
 
         if (!eina_strbuf_length_get(obuf))
-          eina_strbuf_append_printf(obuf, "   EFL_OPS_DEFINE(%s,\n",
-                                    (obuf == ops) ? "ops" : "cops");
+          eina_strbuf_append_printf(obuf, "   EFL_OPS_DEFINE(ops,\n");
 
         Eina_Bool found_get = !!eina_hash_find(_funcs_params_init_get, &imp);
         Eina_Bool found_set = !!eina_hash_find(_funcs_params_init_set, &imp);
@@ -864,28 +906,10 @@ _gen_initializer(const Eolian_Class *cl, Eina_Strbuf *buf)
         eina_strbuf_append(buf, "   opsp = &ops;\n");
         eina_strbuf_append(buf, "#endif\n\n");
      }
-   if (eina_strbuf_length_get(cops))
-     {
-        eina_strbuf_append_printf(buf, "#ifndef %s_EXTRA_CLASS_OPS\n", cnameu);
-        eina_strbuf_append_printf(buf, "#define %s_EXTRA_CLASS_OPS\n", cnameu);
-        eina_strbuf_append(buf, "#endif\n\n");
-
-        eina_strbuf_append_printf(cops, "      %s_EXTRA_CLASS_OPS\n   );\n", cnameu);
-        eina_strbuf_append(buf, eina_strbuf_string_get(cops));
-        eina_strbuf_append(buf, "   copsp = &cops;\n\n");
-     }
-   else
-     {
-        eina_strbuf_append_printf(buf, "#ifdef %s_EXTRA_CLASS_OPS\n", cnameu);
-        eina_strbuf_append_printf(buf, "   EFL_OPS_DEFINE(cops, %s_EXTRA_CLASS_OPS);\n", cnameu);
-        eina_strbuf_append(buf, "   copsp = &cops;\n");
-        eina_strbuf_append(buf, "#endif\n\n");
-     }
 
-   eina_strbuf_append(buf, "   return efl_class_functions_set(klass, opsp, copsp, NULL);\n");
+   eina_strbuf_append(buf, "   return efl_class_functions_set(klass, opsp, NULL, NULL);\n");
 
    eina_strbuf_free(ops);
-   eina_strbuf_free(cops);
 
    eina_strbuf_append(buf, "}\n\n");
 
index f89ac95..9fef462 100644 (file)
@@ -147,11 +147,12 @@ struct function_definition_generator
         << (do_super ? " protected " : " private ") << "static extern "
         << eolian_mono::marshall_type(true)
         << " " << string
-        << "(System.IntPtr obj"
-        << *grammar::attribute_reorder<-1, -1>
+        << "(" << (f.is_static ? "" : "System.IntPtr obj")
+        << ((!f.is_static && (f.parameters.size() > 0)) ? ", " : "")
+        << (grammar::attribute_reorder<-1, -1>
         (
-         (", " << marshall_annotation << " " << marshall_parameter)
-        )
+         (marshall_annotation << " " << marshall_parameter)
+        ) % ",")
         << ");\n")
        .generate(sink, std::make_tuple(f.return_type, f.return_type, f.c_name, f.parameters), context))
       return false;
@@ -170,14 +171,14 @@ struct function_definition_generator
     if (do_super && !f.is_static)
       self = "(inherited ? Efl.Eo.Globals.efl_super(" + self + ", this.NativeClass) : " + self + ")";
     else if (f.is_static)
-      self = name_helpers::klass_get_full_name(f.klass) + "()";
+      self = "";
 
     if(!as_generator
        (scope_tab << ((do_super && !f.is_static) ? "virtual " : "") << "public " << (f.is_static ? "static " : "") << return_type << " " << string << "(" << (parameter % ", ")
         << ") {\n "
         << eolian_mono::function_definition_preamble() << string << "("
-        << self
-        << *(", " << argument_invocation ) << ");\n"
+        << self << ((!f.is_static && (f.parameters.size() > 0)) ? "," : "")
+        << (argument_invocation % ", ") << ");\n"
         << eolian_mono::function_definition_epilogue()
         << " }\n")
        .generate(sink, std::make_tuple(name_helpers::managed_method_name(f), f.parameters, f, f.c_name, f.parameters, f), context))
index 16fc876..0097c2a 100644 (file)
@@ -123,7 +123,7 @@ main(int argc, char *argv[])
    for (i = 1; i < argc; i++)
      {
         const char *address = argv[i];
-        Eo *o = efl_net_ip_address_parse(EFL_NET_IP_ADDRESS_CLASS, address);
+        Eo *o = efl_net_ip_address_parse( address);
         if (o)
           {
              _print_ip_addr_info(o);
@@ -131,7 +131,7 @@ main(int argc, char *argv[])
           }
         else
           {
-             Eina_Future *f = efl_net_ip_address_resolve(EFL_NET_IP_ADDRESS_CLASS, address, 0, 0);
+             Eina_Future *f = efl_net_ip_address_resolve( address, 0, 0);
              eina_future_then(f, _resolved, address);
              printf("INFO: %s is not numeric, resolving...\n", address);
              resolving = eina_list_append(resolving, f);
index 10cec47..45dc189 100644 (file)
@@ -464,7 +464,7 @@ efl_main(void *data EINA_UNUSED,
                      efl_net_ssl_context_hostname_set(efl_added, hostname_override),
                      efl_net_ssl_context_setup(efl_added, cipher, EINA_TRUE));
 #else
-   ssl_ctx = efl_net_ssl_context_default_dialer_get(EFL_NET_SSL_CONTEXT_CLASS);
+   ssl_ctx = efl_net_ssl_context_default_dialer_get();
    fprintf(stderr, "INFO: using default context for dialers.\n");
 #endif
 
index 63849d2..0e9e17e 100644 (file)
@@ -87,7 +87,7 @@ _ecore_event_filters_call(Eo *obj, Efl_Loop_Data *pd)
    Filter *f;
    Ecore_Event_Message_Handler_Data *eemhd;
    Eo *ecore_event_handler = efl_loop_message_handler_get
-     (EFL_LOOP_CLASS, obj, ECORE_EVENT_MESSAGE_HANDLER_CLASS);
+     (obj, ECORE_EVENT_MESSAGE_HANDLER_CLASS);
 
    if (!ecore_event_handler) return;
    eemhd = efl_data_scope_get(ecore_event_handler, MY_CLASS);
index 3a0b79a..c85b69d 100644 (file)
@@ -248,8 +248,7 @@ _ecore_event_init(void)
    if ((!choice) || (!choice[0])) choice = "chained_mempool";
 
    _event_msg_handler =
-     efl_loop_message_handler_get(EFL_LOOP_CLASS,
-                                  _mainloop_singleton,
+     efl_loop_message_handler_get(_mainloop_singleton,
                                   ECORE_EVENT_MESSAGE_HANDLER_CLASS);
    if (!_event_msg_handler)
      {
index 3d090ca..6bfa800 100644 (file)
@@ -15,7 +15,7 @@
 Efl_Version _app_efl_version = { 0, 0, 0, 0, NULL, NULL };
 
 EOLIAN static Efl_App*
-_efl_app_app_main_get(const Eo *obj EINA_UNUSED, void *pd EINA_UNUSED)
+_efl_app_app_main_get(void)
 {
    if (_mainloop_singleton) return _mainloop_singleton;
    _mainloop_singleton = efl_add_ref(EFL_APP_CLASS, NULL);
index 846b69a..7451946 100644 (file)
@@ -131,7 +131,7 @@ _efl_core_proc_env_efl_object_constructor(Eo *obj, Efl_Core_Proc_Env_Data *pd EI
 }
 
 EOLIAN static Efl_Core_Env*
-_efl_core_proc_env_self(Eo *obj EINA_UNUSED, void *pd EINA_UNUSED)
+_efl_core_proc_env_self(void)
 {
    if (!env)
      {
index cf8600c..342a6f7 100644 (file)
@@ -29,7 +29,7 @@ struct _Efl_Loop_Promise_Simple_Data
 GENERIC_ALLOC_SIZE_DECLARE(Efl_Loop_Promise_Simple_Data);
 
 EOLIAN static Efl_Loop_Message_Handler *
-_efl_loop_message_handler_get(Eo *obj EINA_UNUSED, void *pd EINA_UNUSED, Efl_Loop *loop, const Efl_Class *klass)
+_efl_loop_message_handler_get(Efl_Loop *loop, const Efl_Class *klass)
 {
    Message_Handler mh = { 0 }, *mh2;
    Efl_Loop_Data *ld = efl_data_scope_get(loop, EFL_LOOP_CLASS);
@@ -54,7 +54,7 @@ Efl_Loop_Data *_mainloop_singleton_data = NULL;
 EAPI Eo *
 efl_main_loop_get(void)
 {
-   return efl_app_main_get(EFL_APP_CLASS);
+   return efl_app_main_get();
 }
 
 EOLIAN static void
@@ -309,7 +309,7 @@ _efl_loop_efl_object_constructor(Eo *obj, Efl_Loop_Data *pd)
    pd->epoll_fd = -1;
    pd->timer_fd = -1;
    pd->future_message_handler = efl_loop_message_handler_get
-     (EFL_LOOP_CLASS, obj, EFL_LOOP_MESSAGE_FUTURE_HANDLER_CLASS);
+     (obj, EFL_LOOP_MESSAGE_FUTURE_HANDLER_CLASS);
    return obj;
 }
 
@@ -395,7 +395,7 @@ ecore_loop_arguments_send(int argc, const char **argv)
         eina_array_push(cml, arg);
      }
 
-   efl_core_command_line_command_array_set(efl_app_main_get(EFL_APP_CLASS), cml);
+   efl_core_command_line_command_array_set(efl_app_main_get(), cml);
    efl_future_then(efl_main_loop_get(), efl_loop_job(efl_main_loop_get()),
                    .success = _efl_loop_arguments_send,
                    .free = _efl_loop_arguments_cleanup,
index 4582f4a..6f1c22c 100644 (file)
@@ -738,7 +738,7 @@ _ecore_con_url_request_prepare(Ecore_Con_Url *url_con, const char *method)
 
    if (url_con->time.condition != ECORE_CON_URL_TIME_NONE)
      {
-        char *ts = efl_net_dialer_http_date_serialize(EFL_NET_DIALER_HTTP_CLASS, url_con->time.stamp);
+        char *ts = efl_net_dialer_http_date_serialize(url_con->time.stamp);
         if (ts)
           {
              efl_net_dialer_http_request_header_add(url_con->dialer,
index 9246768..20f3156 100644 (file)
@@ -2375,14 +2375,14 @@ _efl_net_dialer_http_ssl_certificate_revocation_list_get(const Eo *o EINA_UNUSED
 }
 
 EOLIAN static int64_t
-_efl_net_dialer_http_date_parse(Efl_Class *cls EINA_UNUSED, void *cd EINA_UNUSED, const char *str)
+_efl_net_dialer_http_date_parse(const char *str)
 {
    EINA_SAFETY_ON_NULL_RETURN_VAL(str, 0);
    return curl_getdate(str, NULL);
 }
 
 EOLIAN static char *
-_efl_net_dialer_http_date_serialize(Efl_Class *cls EINA_UNUSED, void *cd EINA_UNUSED, int64_t ts)
+_efl_net_dialer_http_date_serialize(int64_t ts)
 {
    static const char *const wkday[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
    static const char * const month[] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" };
index 78b5879..33d314f 100644 (file)
@@ -84,7 +84,7 @@ _efl_net_dialer_ssl_efl_object_finalize(Eo *o, Efl_Net_Dialer_Ssl_Data *pd)
    else
      {
         if (!pd->ssl_ctx)
-          pd->ssl_ctx = efl_ref(efl_net_ssl_context_default_dialer_get(EFL_NET_SSL_CONTEXT_CLASS));
+          pd->ssl_ctx = efl_ref(efl_net_ssl_context_default_dialer_get());
 
         efl_net_socket_ssl_adopt(o, pd->sock, pd->ssl_ctx);
      }
index 953ae7d..b42e9d4 100644 (file)
@@ -180,7 +180,7 @@ _efl_net_dialer_udp_resolved_bind(Eo *o, Efl_Net_Dialer_Udp_Data *pd EINA_UNUSED
           }
      }
 
-   remote_address = efl_net_ip_address_create_sockaddr(EFL_NET_IP_ADDRESS_CLASS, addr->ai_addr);
+   remote_address = efl_net_ip_address_create_sockaddr(addr->ai_addr);
    if (remote_address)
      {
         efl_net_socket_udp_init(o, remote_address);
index 9a79c07..cc29aba 100644 (file)
@@ -300,7 +300,7 @@ _efl_net_ip_address_any_check(const Eo *o EINA_UNUSED, Efl_Net_Ip_Address_Data *
 }
 
 EOLIAN static Efl_Net_Ip_Address *
-_efl_net_ip_address_create(Eo *cls, void *pd EINA_UNUSED, uint16_t port, const Eina_Slice address)
+_efl_net_ip_address_create(uint16_t port, const Eina_Slice address)
 {
    int family;
 
@@ -311,26 +311,26 @@ _efl_net_ip_address_create(Eo *cls, void *pd EINA_UNUSED, uint16_t port, const E
    else
      family = AF_INET;
 
-   return efl_add_ref(cls, efl_main_loop_get(),
+   return efl_add_ref(EFL_NET_IP_ADDRESS_CLASS, efl_main_loop_get(),
                   efl_net_ip_address_family_set(efl_added, family),
                   efl_net_ip_address_port_set(efl_added, port),
                   efl_net_ip_address_set(efl_added, address));
 }
 
 EOLIAN static Efl_Net_Ip_Address *
-_efl_net_ip_address_create_sockaddr(Eo *cls, void *pd EINA_UNUSED, const void *ptr)
+_efl_net_ip_address_create_sockaddr(const void *ptr)
 {
    const struct sockaddr *sockaddr = ptr;
 
    EINA_SAFETY_ON_NULL_RETURN_VAL(sockaddr, NULL);
    EINA_SAFETY_ON_TRUE_RETURN_VAL((sockaddr->sa_family != AF_INET) && (sockaddr->sa_family != AF_INET6), NULL);
 
-   return efl_add_ref(cls, efl_main_loop_get(),
+   return efl_add_ref(EFL_NET_IP_ADDRESS_CLASS, efl_main_loop_get(),
                   efl_net_ip_address_sockaddr_set(efl_added, sockaddr));
 }
 
 EOLIAN static Efl_Net_Ip_Address *
-_efl_net_ip_address_parse(Eo *cls, void *pd EINA_UNUSED, const char *numeric_address)
+_efl_net_ip_address_parse(const char *numeric_address)
 {
    struct sockaddr_storage ss;
    Eina_Bool r;
@@ -368,7 +368,7 @@ _efl_net_ip_address_parse(Eo *cls, void *pd EINA_UNUSED, const char *numeric_add
         return NULL;
      }
 
-   return efl_add_ref(cls, efl_main_loop_get(),
+   return efl_add_ref(EFL_NET_IP_ADDRESS_CLASS, efl_main_loop_get(),
                   efl_net_ip_address_sockaddr_set(efl_added, &ss));
 }
 
@@ -509,7 +509,7 @@ _efl_net_ip_address_resolve_done(void *data,
         if (EINA_UNLIKELY(_efl_net_ip_address_find(&r, a->ai_addr) >= 0))
           continue;
 
-        o = efl_net_ip_address_create_sockaddr(EFL_NET_IP_ADDRESS_CLASS, a->ai_addr);
+        o = efl_net_ip_address_create_sockaddr(a->ai_addr);
         if (!o) continue ;
 
         eina_value_array_append(&r, o);
@@ -536,7 +536,7 @@ _efl_net_ip_address_resolve_done(void *data,
 }
 
 EOLIAN static Eina_Future *
-_efl_net_ip_address_resolve(Eo *cls EINA_UNUSED, void *pd EINA_UNUSED, const char *address, int family, int flags)
+_efl_net_ip_address_resolve(const char *address, int family, int flags)
 {
    Efl_Net_Ip_Address_Resolve_Context *ctx;
    struct addrinfo hints = { };
index 271cd8a..a625fe8 100644 (file)
@@ -357,11 +357,11 @@ _efl_net_ssl_context_default_dialer_del(void *data EINA_UNUSED, const Efl_Event
 }
 
 EOLIAN static Efl_Net_Ssl_Context *
-_efl_net_ssl_context_default_dialer_get(const Efl_Class *klass, void *pd EINA_UNUSED)
+_efl_net_ssl_context_default_dialer_get(void)
 {
    if (!_efl_net_ssl_context_default_dialer)
      {
-        _efl_net_ssl_context_default_dialer = efl_add(klass, efl_main_loop_get(),
+        _efl_net_ssl_context_default_dialer = efl_add(EFL_NET_SSL_CONTEXT_CLASS, efl_main_loop_get(),
                                                       efl_net_ssl_context_verify_mode_set(efl_added, EFL_NET_SSL_VERIFY_MODE_REQUIRED),
                                                       efl_net_ssl_context_hostname_verify_set(efl_added, EINA_TRUE),
                                                       efl_net_ssl_context_default_paths_load_set(efl_added, EINA_TRUE),
index 707b93b..2af4435 100644 (file)
@@ -2129,7 +2129,6 @@ _edje_object_part_text_raw_generic_set(Edje *ed, Evas_Object *obj, Edje_Real_Par
           {
              char *mkup;
              mkup = efl_text_markup_util_text_to_markup(
-                EFL_TEXT_MARKUP_UTIL_CLASS,
                 text);
              rp->typedata.text->text = eina_stringshare_add(mkup);
              free(mkup);
index bf296c1..239915b 100644 (file)
@@ -68,8 +68,7 @@ _markup_get_text_utf8_append(Eina_Strbuf *sbuf, const char *text)
 }
 
 EOLIAN static char*
-_efl_text_markup_util_text_to_markup(Eo *class EINA_UNUSED,
-      void *_pd EINA_UNUSED, const char *text)
+_efl_text_markup_util_text_to_markup(const char *text)
 {
    Eina_Strbuf *sbuf;
    char *str = NULL;
@@ -491,8 +490,7 @@ _text_util_markup_to_text(const char *text)
 }
 
 static EOLIAN char*
-_efl_text_markup_util_markup_to_text(Eo *class EINA_UNUSED,
-      void *_pd EINA_UNUSED, const char *text)
+_efl_text_markup_util_markup_to_text(const char *text)
 {
    return _text_util_markup_to_text(text);
 }
index acd16c0..fd15949 100644 (file)
@@ -544,7 +544,8 @@ EAPI void efl_access_attributes_list_free(Eina_List *list)
 }
 
 EOLIAN void
-_efl_access_object_event_emit(Eo *class EINA_UNUSED, void *pd EINA_UNUSED, Eo *accessible, const Efl_Event_Description *event, void *event_info)
+_efl_access_object_event_emit(Eo *accessible, const Efl_Event_Description *event, void *event_info)
+
 {
    Eina_List *l;
    Efl_Access_Event_Handler *hdl;
@@ -567,7 +568,7 @@ _efl_access_object_event_emit(Eo *class EINA_UNUSED, void *pd EINA_UNUSED, Eo *a
 }
 
 EOLIAN Efl_Access_Event_Handler *
-_efl_access_object_event_handler_add(Eo *class EINA_UNUSED, void *pd EINA_UNUSED, Efl_Event_Cb cb, void *data)
+_efl_access_object_event_handler_add(Efl_Event_Cb cb, void *data)
 {
    Efl_Access_Event_Handler *ret = calloc(1, sizeof(Efl_Access_Event_Handler));
    if (!ret) return NULL;
@@ -581,7 +582,7 @@ _efl_access_object_event_handler_add(Eo *class EINA_UNUSED, void *pd EINA_UNUSED
 }
 
 EOLIAN void
-_efl_access_object_event_handler_del(Eo *class EINA_UNUSED, void *pd EINA_UNUSED, Efl_Access_Event_Handler *handler)
+_efl_access_object_event_handler_del(Efl_Access_Event_Handler *handler)
 {
    Eina_List *l, *l2;
    Efl_Access_Event_Handler *hdl;
@@ -835,7 +836,7 @@ _efl_access_object_state_notify(Eo *obj, Efl_Access_Object_Data *data EINA_UNUSE
 //
 
 EOLIAN Eo*
-_efl_access_object_access_root_get(const Eo *class EINA_UNUSED, void *pd EINA_UNUSED)
+_efl_access_object_access_root_get(void)
 {
    if (!root)
      root = efl_add(ELM_ATSPI_APP_OBJECT_CLASS, efl_main_loop_get());
index a9de35a..b71306f 100644 (file)
@@ -122,7 +122,7 @@ efl_access_attribute_free(Efl_Access_Attribute *attr);
       Efl_Access_Event_State_Changed_Data evinfo; \
       evinfo.type = (tp); \
       evinfo.new_value = (nvl); \
-      efl_access_object_event_emit(EFL_ACCESS_OBJECT_MIXIN, obj, EFL_ACCESS_OBJECT_EVENT_STATE_CHANGED, (void*)&evinfo); \
+      efl_access_object_event_emit(obj, EFL_ACCESS_OBJECT_EVENT_STATE_CHANGED, (void*)&evinfo); \
    } while(0); }
 
 /**
@@ -131,7 +131,7 @@ efl_access_attribute_free(Efl_Access_Attribute *attr);
 #define efl_access_bounds_changed_signal_emit(obj, x, y, width, height) \
    do { \
          Efl_Access_Event_Geometry_Changed_Data evinfo = { x, y, width, height }; \
-         efl_access_object_event_emit(EFL_ACCESS_OBJECT_MIXIN, obj, EFL_ACCESS_OBJECT_EVENT_BOUNDS_CHANGED, (void*)&evinfo); \
+         efl_access_object_event_emit(obj, EFL_ACCESS_OBJECT_EVENT_BOUNDS_CHANGED, (void*)&evinfo); \
    } while(0);
 
 //TIZEN_ONLY(20160623): atspi: moved highlight when object is out of screen
@@ -141,7 +141,7 @@ efl_access_attribute_free(Efl_Access_Attribute *attr);
 #define efl_access_move_outed_signal_emit(obj, type) \
    do { \
          Efl_Access_Move_Outed_Type evinfo = type; \
-         efl_access_object_event_emit(EFL_ACCESS_OBJECT_MIXIN, obj, EFL_ACCESS_OBJECT_EVENT_MOVE_OUTED, (void*)&evinfo); \
+         efl_access_object_event_emit(obj, EFL_ACCESS_OBJECT_EVENT_MOVE_OUTED, (void*)&evinfo); \
    } while(0);
 //
 
@@ -149,31 +149,31 @@ efl_access_attribute_free(Efl_Access_Attribute *attr);
  * Emits Accessible 'PropertyChanged' signal for 'Name' property.
  */
 #define efl_access_i18n_name_changed_signal_emit(obj) \
-   efl_access_object_event_emit(EFL_ACCESS_OBJECT_MIXIN, obj, EFL_ACCESS_OBJECT_EVENT_PROPERTY_CHANGED, "i18n_name");
+   efl_access_object_event_emit(obj, EFL_ACCESS_OBJECT_EVENT_PROPERTY_CHANGED, "i18n_name");
 
 /**
  * Emits Accessible 'PropertyChanged' signal for 'Description' property.
  */
 #define efl_access_description_changed_signal_emit(obj) \
-   efl_access_object_event_emit(EFL_ACCESS_OBJECT_MIXIN, obj, EFL_ACCESS_OBJECT_EVENT_PROPERTY_CHANGED, "description");
+   efl_access_object_event_emit(obj, EFL_ACCESS_OBJECT_EVENT_PROPERTY_CHANGED, "description");
 
 /**
  * Emits Accessible 'PropertyChanged' signal for 'Parent' property.
  */
 #define efl_access_parent_changed_signal_emit(obj) \
-   efl_access_object_event_emit(EFL_ACCESS_OBJECT_MIXIN, obj, EFL_ACCESS_OBJECT_EVENT_PROPERTY_CHANGED, "parent");
+   efl_access_object_event_emit(obj, EFL_ACCESS_OBJECT_EVENT_PROPERTY_CHANGED, "parent");
 
 /**
  * Emits Accessible 'PropertyChanged' signal for 'Role' property.
  */
 #define efl_access_role_changed_signal_emit(obj) \
-   efl_access_object_event_emit(EFL_ACCESS_OBJECT_MIXIN, obj, EFL_ACCESS_OBJECT_EVENT_PROPERTY_CHANGED, "role");
+   efl_access_object_event_emit(obj, EFL_ACCESS_OBJECT_EVENT_PROPERTY_CHANGED, "role");
 
 /**
  * Emits Accessible 'PropertyChanged' signal for 'Value' property.
  */
 #define efl_access_value_changed_signal_emit(obj) \
-   efl_access_object_event_emit(EFL_ACCESS_OBJECT_MIXIN, obj, EFL_ACCESS_OBJECT_EVENT_PROPERTY_CHANGED, "value");
+   efl_access_object_event_emit(obj, EFL_ACCESS_OBJECT_EVENT_PROPERTY_CHANGED, "value");
 
 /**
  * Emits Accessible 'ChildrenChanged' signal with added child as argument.
@@ -184,7 +184,7 @@ efl_access_attribute_free(Efl_Access_Attribute *attr);
 #define efl_access_children_changed_added_signal_emit(obj, child) \
    do { \
       Efl_Access_Event_Children_Changed_Data atspi_data = { EINA_TRUE, child }; \
-   efl_access_object_event_emit(EFL_ACCESS_OBJECT_MIXIN, obj, EFL_ACCESS_OBJECT_EVENT_CHILDREN_CHANGED, &atspi_data); \
+   efl_access_object_event_emit(obj, EFL_ACCESS_OBJECT_EVENT_CHILDREN_CHANGED, &atspi_data); \
    } while(0);
 */
 //
@@ -198,7 +198,7 @@ efl_access_attribute_free(Efl_Access_Attribute *attr);
 #define efl_access_children_changed_del_signal_emit(obj, child) \
    do { \
       Efl_Access_Event_Children_Changed_Data atspi_data = { EINA_FALSE, child }; \
-      efl_access_object_event_emit(EFL_ACCESS_OBJECT_MIXIN, obj, EFL_ACCESS_OBJECT_EVENT_CHILDREN_CHANGED, &atspi_data); \
+      efl_access_object_event_emit(obj, EFL_ACCESS_OBJECT_EVENT_CHILDREN_CHANGED, &atspi_data); \
    } while(0);
 */
 //
@@ -207,13 +207,13 @@ efl_access_attribute_free(Efl_Access_Attribute *attr);
  * Emits Accessible 'ActiveDescendantChanged' signal.
  */
 #define efl_access_active_descendant_changed_signal_emit(obj, child) \
-   efl_access_object_event_emit(EFL_ACCESS_OBJECT_MIXIN, obj, EFL_ACCESS_OBJECT_EVENT_ACTIVE_DESCENDANT_CHANGED, child);
+   efl_access_object_event_emit(obj, EFL_ACCESS_OBJECT_EVENT_ACTIVE_DESCENDANT_CHANGED, child);
 
 /**
  * Emits Accessible 'VisibleDataChanged' signal.
  */
 #define efl_access_visible_data_changed_signal_emit(obj) \
-   efl_access_object_event_emit(EFL_ACCESS_OBJECT_MIXIN, obj, EFL_ACCESS_OBJECT_EVENT_VISIBLE_DATA_CHANGED, NULL);
+   efl_access_object_event_emit(obj, EFL_ACCESS_OBJECT_EVENT_VISIBLE_DATA_CHANGED, NULL);
 
 /**
  * Emits Accessible 'AddAccessible' signal.
@@ -222,7 +222,7 @@ efl_access_attribute_free(Efl_Access_Attribute *attr);
 #define efl_access_added(obj) ((void)0)/* Empty */
 /*
 #define efl_access_added(obj) \
-   efl_access_object_event_emit(EFL_ACCESS_OBJECT_MIXIN, obj, EFL_ACCESS_OBJECT_EVENT_ADDED, NULL);
+   efl_access_object_event_emit(obj, EFL_ACCESS_OBJECT_EVENT_ADDED, NULL);
 */
 //
 
@@ -233,7 +233,7 @@ efl_access_attribute_free(Efl_Access_Attribute *attr);
 #define efl_access_removed(obj) ((void)0)/* Empty */
 /*
 #define efl_access_removed(obj) \
-   efl_access_object_event_emit(EFL_ACCESS_OBJECT_MIXIN, obj, EFL_ACCESS_OBJECT_EVENT_REMOVED, NULL);
+   efl_access_object_event_emit(obj, EFL_ACCESS_OBJECT_EVENT_REMOVED, NULL);
 */
 //
 
index eb44798..609d106 100644 (file)
  * Emits 'Window:Activated' accessible signal.
  */
 #define efl_access_window_activated_signal_emit(obj) \
-   efl_access_object_event_emit(EFL_ACCESS_OBJECT_MIXIN, obj, EFL_ACCESS_WINDOW_EVENT_WINDOW_ACTIVATED, NULL);
+   efl_access_object_event_emit(obj, EFL_ACCESS_WINDOW_EVENT_WINDOW_ACTIVATED, NULL);
 
 /**
  * Emits 'Window:Deactivated' accessible signal.
  */
 #define efl_access_window_deactivated_signal_emit(obj) \
-   efl_access_object_event_emit(EFL_ACCESS_OBJECT_MIXIN, obj, EFL_ACCESS_WINDOW_EVENT_WINDOW_DEACTIVATED, NULL);
+   efl_access_object_event_emit(obj, EFL_ACCESS_WINDOW_EVENT_WINDOW_DEACTIVATED, NULL);
 
 /**
  * Emits 'Window:Created' accessible signal.
  */
 #define efl_access_window_created_signal_emit(obj) \
-   efl_access_object_event_emit(EFL_ACCESS_OBJECT_MIXIN, obj, EFL_ACCESS_WINDOW_EVENT_WINDOW_CREATED, NULL);
+   efl_access_object_event_emit(obj, EFL_ACCESS_WINDOW_EVENT_WINDOW_CREATED, NULL);
 
 /**
  * Emits 'Window:Destroyed' accessible signal.
  */
 #define efl_access_window_destroyed_signal_emit(obj) \
-   efl_access_object_event_emit(EFL_ACCESS_OBJECT_MIXIN, obj, EFL_ACCESS_WINDOW_EVENT_WINDOW_DESTROYED, NULL);
+   efl_access_object_event_emit(obj, EFL_ACCESS_WINDOW_EVENT_WINDOW_DESTROYED, NULL);
 
 /**
  * Emits 'Window:Maximized' accessible signal.
  */
 #define efl_access_window_maximized_signal_emit(obj) \
-   efl_access_object_event_emit(EFL_ACCESS_OBJECT_MIXIN, obj, EFL_ACCESS_WINDOW_EVENT_WINDOW_MAXIMIZED, NULL);
+   efl_access_object_event_emit(obj, EFL_ACCESS_WINDOW_EVENT_WINDOW_MAXIMIZED, NULL);
 
 /**
  * Emits 'Window:Minimized' accessible signal.
  */
 #define efl_access_window_minimized_signal_emit(obj) \
-   efl_access_object_event_emit(EFL_ACCESS_OBJECT_MIXIN, obj, EFL_ACCESS_WINDOW_EVENT_WINDOW_MINIMIZED, NULL);
+   efl_access_object_event_emit(obj, EFL_ACCESS_WINDOW_EVENT_WINDOW_MINIMIZED, NULL);
 
 /**
  * Emits 'Window:Restored' accessible signal.
  */
 #define efl_access_window_restored_signal_emit(obj) \
-   efl_access_object_event_emit(EFL_ACCESS_OBJECT_MIXIN, obj, EFL_ACCESS_WINDOW_EVENT_WINDOW_RESTORED, NULL);
+   efl_access_object_event_emit(obj, EFL_ACCESS_WINDOW_EVENT_WINDOW_RESTORED, NULL);
 
 #endif
 // TIZEN_ONLY(20171114): Add accessibility highlight for toolbar items I7892c9433d675d9ba6618991ae46488060752c3c
index fae5b9d..751024e 100644 (file)
@@ -28,7 +28,7 @@ Eo*
 _efl_ui_selection_manager_get(Eo *obj)
 {
    if (!efl_isa(obj, EFL_UI_WIDGET_CLASS)) return NULL;
-   Eo *app = efl_app_main_get(EFL_APP_CLASS);
+   Eo *app = efl_app_main_get();
    Eo *sel_man = efl_key_data_get(app, "__selection_manager");
    if (!sel_man)
      {
@@ -41,7 +41,7 @@ _efl_ui_selection_manager_get(Eo *obj)
 void
 _efl_ui_dnd_shutdown(void)
 {
-   Eo *app = efl_app_main_get(EFL_APP_CLASS);
+   Eo *app = efl_app_main_get();
    Eo *sel_man = efl_key_data_get(app, "__selection_manager");
 
    efl_del(sel_man);
index a341133..5f50d70 100644 (file)
@@ -123,7 +123,7 @@ _efl_ui_focus_layer_enable_set(Eo *obj, Efl_Ui_Focus_Layer_Data *pd, Eina_Bool v
 
         pd->registered_manager = elm_widget_top_get(obj);
         EINA_SAFETY_ON_FALSE_RETURN(efl_isa(pd->registered_manager, EFL_UI_WIN_CLASS));
-        manager = efl_ui_focus_util_active_manager(EFL_UI_FOCUS_UTIL_CLASS, pd->registered_manager);
+        manager = efl_ui_focus_util_active_manager(pd->registered_manager);
 
         efl_ui_focus_manager_calc_register_logical(pd->registered_manager, obj, efl_ui_focus_manager_root_get(pd->registered_manager), obj);
         _publish_state_change(obj, NULL, NULL);
index b2b8356..308cdd8 100644 (file)
@@ -157,7 +157,7 @@ border_onedirection_set(Node *node, Efl_Ui_Focus_Direction direction, Eina_List
 
    EINA_LIST_FREE(border->one_direction, partner)
      {
-        Border *b = &DIRECTION_ACCESS(partner, efl_ui_focus_util_direction_complement(EFL_UI_FOCUS_UTIL_CLASS,direction));
+        Border *b = &DIRECTION_ACCESS(partner, efl_ui_focus_util_direction_complement(direction));
         b->cleanup_nodes = eina_list_remove(b->cleanup_nodes, node);
      }
 
@@ -165,7 +165,7 @@ border_onedirection_set(Node *node, Efl_Ui_Focus_Direction direction, Eina_List
 
    EINA_LIST_FOREACH(border->one_direction, lnode, partner)
      {
-        Border *comp_border = &DIRECTION_ACCESS(partner,efl_ui_focus_util_direction_complement(EFL_UI_FOCUS_UTIL_CLASS,direction));
+        Border *comp_border = &DIRECTION_ACCESS(partner,efl_ui_focus_util_direction_complement(direction));
 
         comp_border->cleanup_nodes = eina_list_append(comp_border->cleanup_nodes, node);
      }
@@ -183,7 +183,7 @@ border_onedirection_cleanup(Node *node, Efl_Ui_Focus_Direction direction)
 
    EINA_LIST_FREE(border->cleanup_nodes, partner)
      {
-        Border *b = &DIRECTION_ACCESS(partner, efl_ui_focus_util_direction_complement(EFL_UI_FOCUS_UTIL_CLASS,direction));
+        Border *b = &DIRECTION_ACCESS(partner, efl_ui_focus_util_direction_complement(direction));
         b->one_direction = eina_list_remove(b->one_direction, node);
      }
 }
index f422266..3021c68 100644 (file)
@@ -12,7 +12,7 @@ typedef struct {
 static void
 _manager_changed(void *data, const Efl_Event *event EINA_UNUSED)
 {
-   efl_ui_focus_util_focus(EFL_UI_FOCUS_UTIL_CLASS, data);
+   efl_ui_focus_util_focus(data);
 }
 
 static Eina_Bool
@@ -25,7 +25,7 @@ _can_take_focus(Efl_Ui_Focus_Manager *m, Efl_Ui_Focus_Object *user)
 }
 
 EOLIAN static void
-_efl_ui_focus_util_focus(Eo *obj EINA_UNUSED, void *pd EINA_UNUSED, Efl_Ui_Focus_Object *user)
+_efl_ui_focus_util_focus(Efl_Ui_Focus_Object *user)
 {
    Efl_Ui_Focus_Object *entry;
    Efl_Ui_Widget *top, *o;
@@ -64,7 +64,7 @@ _efl_ui_focus_util_focus(Eo *obj EINA_UNUSED, void *pd EINA_UNUSED, Efl_Ui_Focus
 }
 
 EOLIAN static Efl_Ui_Focus_Manager*
-_efl_ui_focus_util_active_manager(Eo *obj EINA_UNUSED, void *pd EINA_UNUSED, Efl_Ui_Focus_Manager *manager)
+_efl_ui_focus_util_active_manager(Efl_Ui_Focus_Manager *manager)
 {
    while (efl_ui_focus_manager_redirect_get(manager))
      manager = efl_ui_focus_manager_redirect_get(manager);
@@ -73,7 +73,7 @@ _efl_ui_focus_util_active_manager(Eo *obj EINA_UNUSED, void *pd EINA_UNUSED, Efl
 }
 
 EOLIAN static Efl_Ui_Focus_Direction
-_efl_ui_focus_util_direction_complement(Eo *obj EINA_UNUSED, void *pd EINA_UNUSED, Efl_Ui_Focus_Direction dir)
+_efl_ui_focus_util_direction_complement(Efl_Ui_Focus_Direction dir)
 {
   #define COMP(a,b) \
         if (dir == a) return b; \
index 8c697a7..0222409 100644 (file)
@@ -4835,7 +4835,7 @@ elm_widget_focus_mouse_up_handle(Eo *obj)
    //
    if (pd->focus.manager && !pd->focus.logical)
      {
-        efl_ui_focus_util_focus(EFL_UI_FOCUS_UTIL_CLASS, obj);
+        efl_ui_focus_util_focus(obj);
      }
 }
 //TIZEN_ONLY(20180607): Restore legacy focus
index 1c9cc8d..97d0d1a 100644 (file)
@@ -2844,7 +2844,7 @@ _efl_ui_win_show(Eo *obj, Efl_Ui_Win_Data *sd)
      {
         Eo *root;
         efl_access_window_created_signal_emit(obj);
-        root = efl_access_object_access_root_get(EFL_ACCESS_OBJECT_MIXIN);
+        root = efl_access_object_access_root_get();
         if (root)
            efl_access_children_changed_added_signal_emit(root, obj);
      }
@@ -2921,7 +2921,7 @@ _efl_ui_win_hide(Eo *obj, Efl_Ui_Win_Data *sd)
    if (_elm_atspi_enabled())
      {
         Eo *root;
-        root = efl_access_object_access_root_get(EFL_ACCESS_OBJECT_MIXIN);
+        root = efl_access_object_access_root_get();
         efl_access_window_destroyed_signal_emit(obj);
         if (root)
            efl_access_children_changed_del_signal_emit(root, obj);
@@ -3565,7 +3565,7 @@ _efl_ui_win_efl_canvas_group_group_del(Eo *obj, Efl_Ui_Win_Data *sd)
      }
    if (!_elm_win_list)
      {
-        efl_event_callback_call(efl_app_main_get(EFL_APP_CLASS), EFL_APP_EVENT_STANDBY, NULL);
+        efl_event_callback_call(efl_app_main_get(), EFL_APP_EVENT_STANDBY, NULL);
         if (eina_value_type_get(&exit_on_all_windows_closed))
           efl_loop_quit(efl_loop_get(obj), exit_on_all_windows_closed);
      }
@@ -6768,7 +6768,7 @@ _efl_ui_win_efl_object_constructor(Eo *obj, Efl_Ui_Win_Data *pd)
      efl_allow_parent_unref_set(obj, EINA_TRUE);
 
    //TIZEN_ONLY(20181024): Fix parent-children incosistencies in atspi tree
-   Eo *root = efl_access_object_access_root_get(EFL_ACCESS_OBJECT_MIXIN);
+   Eo *root = efl_access_object_access_root_get();
    efl_access_object_access_parent_set(obj, root);
    //
 
@@ -7285,13 +7285,13 @@ _dbus_menu_set(Eina_Bool dbus_connect, void *data)
 }
 
 EOLIAN static const Eina_Value *
-_efl_ui_win_exit_on_all_windows_closed_get(const Eo *obj EINA_UNUSED, void *pd EINA_UNUSED)
+_efl_ui_win_exit_on_all_windows_closed_get(void)
 {
    return &exit_on_all_windows_closed;
 }
 
 EOLIAN static void
-_efl_ui_win_exit_on_all_windows_closed_set(Eo *obj EINA_UNUSED, void *pd EINA_UNUSED, const Eina_Value *exit_code)
+_efl_ui_win_exit_on_all_windows_closed_set(const Eina_Value *exit_code)
 {
    const Eina_Value_Type *type = eina_value_type_get(exit_code);
 
@@ -8432,7 +8432,7 @@ _efl_ui_win_efl_object_provider_find(const Eo *obj,
       return (Eo *)obj;
 
    // attach all kinds of windows directly to ATSPI application root object
-   if (klass == EFL_ACCESS_OBJECT_MIXIN) return efl_access_object_access_root_get(EFL_ACCESS_OBJECT_MIXIN);
+   if (klass == EFL_ACCESS_OBJECT_MIXIN) return efl_access_object_access_root_get();
 
     if (klass == EFL_UI_FOCUS_PARENT_PROVIDER_INTERFACE)
       return pd->provider;
index 3eadcd4..1fb9a5a 100644 (file)
@@ -706,7 +706,7 @@ _elm_access_highlight_cycle(Evas_Object *obj, Elm_Focus_Direction dir)
           }
         else
           {
-             efl_ui_focus_util_focus(EFL_UI_FOCUS_UTIL_CLASS, obj);
+             efl_ui_focus_util_focus(obj);
              efl_ui_focus_manager_move(elm_widget_top_get(obj), dir);
           }
      }
index c3288b2..eff9ec6 100644 (file)
@@ -696,7 +696,7 @@ _accessible_get_application(const Eldbus_Service_Interface *iface, const Eldbus_
    EINA_SAFETY_ON_NULL_RETURN_VAL(ret, NULL);
 
    Eldbus_Message_Iter *iter = eldbus_message_iter_get(ret);
-   root = efl_access_object_access_root_get(EFL_ACCESS_OBJECT_MIXIN);
+   root = efl_access_object_access_root_get();
    _bridge_iter_object_reference_append(bridge, iter, root);
 
    return ret;
@@ -2907,7 +2907,7 @@ _bridge_object_from_path(Eo *bridge, const char *path)
    tmp = path + len; /* Skip over the prefix */
    if (!strcmp(ELM_ACCESS_OBJECT_PATH_ROOT, tmp))
      {
-        root = efl_access_object_access_root_get(EFL_ACCESS_OBJECT_MIXIN);
+        root = efl_access_object_access_root_get();
         return root;
      }
 
@@ -2949,7 +2949,7 @@ _path_from_object(const Eo *eo)
 
    if (!eo)
      return ATSPI_DBUS_PATH_NULL;
-   root = efl_access_object_access_root_get(EFL_ACCESS_OBJECT_MIXIN);
+   root = efl_access_object_access_root_get();
 
    if (eo == root)
      snprintf(path, sizeof(path), "%s%s", ELM_ACCESS_OBJECT_PATH_PREFIX, ELM_ACCESS_OBJECT_PATH_ROOT);
@@ -4133,7 +4133,7 @@ _cache_item_reference_append_cb(Eo *bridge, Eo *data, Eldbus_Message_Iter *iter_
    Efl_Access_State_Set states;
    Efl_Access_Role role;
    Eo *root;
-   root = efl_access_object_access_root_get(EFL_ACCESS_OBJECT_MIXIN);
+   root = efl_access_object_access_root_get();
 
    role = efl_access_object_role_get(data);
 
@@ -4248,7 +4248,7 @@ _cache_get_items(const Eldbus_Service_Interface *iface, const Eldbus_Message *ms
    iter_array = eldbus_message_iter_container_new(iter, 'a', CACHE_ITEM_SIGNATURE);
    EINA_SAFETY_ON_NULL_GOTO(iter_array, fail);
 
-   root = efl_access_object_access_root_get(EFL_ACCESS_OBJECT_MIXIN);
+   root = efl_access_object_access_root_get();
    to_process = eina_list_append(NULL, root);
 
    while (to_process)
@@ -5468,7 +5468,7 @@ _elm_atspi_bridge_app_register(Eo *bridge)
                                     "Embed");
    Eldbus_Message_Iter *iter = eldbus_message_iter_get(message);
 
-   root = efl_access_object_access_root_get(EFL_ACCESS_OBJECT_MIXIN);
+   root = efl_access_object_access_root_get();
    _bridge_iter_object_reference_append(bridge, iter, root);
    eldbus_connection_send(pd->a11y_bus, message, _on_elm_atspi_bridge_app_register, NULL, -1);
 
@@ -5481,7 +5481,7 @@ _elm_atspi_bridge_app_unregister(Eo *bridge)
    Eo *root;
    ELM_ATSPI_BRIDGE_DATA_GET_OR_RETURN_VAL(bridge, pd, EINA_FALSE);
 
-   root = efl_access_object_access_root_get(EFL_ACCESS_OBJECT_MIXIN);
+   root = efl_access_object_access_root_get();
 
    Eldbus_Message *message = eldbus_message_method_call_new(ATSPI_DBUS_NAME_REGISTRY,
                                     ATSPI_DBUS_PATH_ROOT,
@@ -6041,7 +6041,7 @@ static void _bridge_signal_send(Eo *bridge, Eo *obj, const char *infc, const Eld
    ELM_ATSPI_BRIDGE_DATA_GET_OR_RETURN(bridge, pd);
 
    path = _path_from_object(obj);
-   root = efl_access_object_access_root_get(EFL_ACCESS_OBJECT_MIXIN);
+   root = efl_access_object_access_root_get();
 
    msg = eldbus_message_signal_new(path, infc, signal->name);
    if (!msg) return;
@@ -6383,7 +6383,7 @@ _a11y_connection_shutdown(Eo *bridge)
    if (pd->event_hash) eina_hash_free(pd->event_hash);
    pd->event_hash = NULL;
 
-   efl_access_object_event_handler_del(EFL_ACCESS_OBJECT_MIXIN, pd->event_hdlr);
+   efl_access_object_event_handler_del(pd->event_hdlr);
    pd->event_hdlr = NULL;
 
    efl_event_callback_legacy_call(bridge, ELM_ATSPI_BRIDGE_EVENT_DISCONNECTED, NULL);
@@ -6480,7 +6480,7 @@ _a11y_bus_initialize(Eo *obj, const char *socket_addr)
      _elm_atspi_bridge_app_register(obj);
 
    // register accessible object event listener
-   pd->event_hdlr = efl_access_object_event_handler_add(EFL_ACCESS_OBJECT_MIXIN, _bridge_accessible_event_dispatch, obj);
+   pd->event_hdlr = efl_access_object_event_handler_add(_bridge_accessible_event_dispatch, obj);
 
 }
 
index 8e10f4a..22ec12d 100644 (file)
@@ -3154,14 +3154,14 @@ _entry_changed_user_signal_cb(void *data,
              atspi_info.content = edje_info->change.insert.content;
              atspi_info.pos = edje_info->change.insert.pos;
              atspi_info.len = edje_info->change.insert.plain_length;
-             efl_access_object_event_emit(EFL_ACCESS_OBJECT_MIXIN, data, EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_INSERTED, &atspi_info);
+             efl_access_object_event_emit( data, EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_INSERTED, &atspi_info);
           }
         else if (edje_info && !edje_info->insert)
           {
              atspi_info.content = edje_info->change.del.content;
              atspi_info.pos = MIN(edje_info->change.del.start, edje_info->change.del.end);
              atspi_info.len = MAX(edje_info->change.del.start, edje_info->change.del.end) - atspi_info.pos;
-             efl_access_object_event_emit(EFL_ACCESS_OBJECT_MIXIN, data, EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_REMOVED, &atspi_info);
+             efl_access_object_event_emit( data, EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_REMOVED, &atspi_info);
           }
      }
 }
@@ -3186,7 +3186,7 @@ _entry_preedit_changed_signal_cb(void *data,
              atspi_info.content = text;
              atspi_info.pos = edje_info->change.insert.pos;
              atspi_info.len = edje_info->change.insert.plain_length;
-             efl_access_object_event_emit(EFL_ACCESS_OBJECT_MIXIN,
+             efl_access_object_event_emit(
                                                        data,
                                                        EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_INSERTED,
                                                        &atspi_info);
@@ -3301,7 +3301,7 @@ _entry_selection_changed_signal_cb(void *data,
      _selection_store(ELM_SEL_TYPE_PRIMARY, data);
    _update_selection_handler(data);
    if (_elm_atspi_enabled())
-     efl_access_object_event_emit(EFL_ACCESS_OBJECT_MIXIN, data, EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_SELECTION_CHANGED, NULL);
+     efl_access_object_event_emit(data, EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_SELECTION_CHANGED, NULL);
 }
 
 static void
@@ -3460,7 +3460,7 @@ _entry_cursor_changed_signal_cb(void *data,
    efl_event_callback_legacy_call(data, ELM_ENTRY_EVENT_CURSOR_CHANGED, NULL);
 
    if (_elm_atspi_enabled())
-     efl_access_object_event_emit(EFL_ACCESS_OBJECT_MIXIN, data, EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_CARET_MOVED, NULL);
+     efl_access_object_event_emit(data, EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_CARET_MOVED, NULL);
 }
 
 static void
@@ -3472,7 +3472,7 @@ _entry_cursor_changed_manual_signal_cb(void *data,
    efl_event_callback_legacy_call
      (data, ELM_ENTRY_EVENT_CURSOR_CHANGED_MANUAL, NULL);
    if (_elm_atspi_enabled())
-     efl_access_object_event_emit(EFL_ACCESS_OBJECT_MIXIN, data, EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_CARET_MOVED, NULL);
+     efl_access_object_event_emit(data, EFL_ACCESS_TEXT_EVENT_ACCESS_TEXT_CARET_MOVED, NULL);
 
    /*************************************************************
     * TIZEN_ONLY_FEATURE : Tizen Copy & Paste feature with CBHM *
index 7d270b3..6c88091 100644 (file)
@@ -112,7 +112,7 @@ elm_object_focus_next_object_set(Evas_Object        *obj,
    #define MAP(direction, field)  if (dir == EFL_UI_FOCUS_DIRECTION_ ##direction) pd->legacy_focus.field = next;
    MAPPING()
    #undef MAP
-   dir = efl_ui_focus_util_direction_complement(EFL_UI_FOCUS_UTIL_CLASS, dir);
+   dir = efl_ui_focus_util_direction_complement(dir);
    #define MAP(direction, field)  if (dir == EFL_UI_FOCUS_DIRECTION_ ##direction) next_pd->legacy_focus.field = obj;
    MAPPING()
    #undef MAP
@@ -239,7 +239,7 @@ elm_object_focus_next(Evas_Object        *obj,
    top = elm_object_top_widget_get(obj);
    EINA_SAFETY_ON_FALSE_RETURN(efl_isa(top, EFL_UI_WIN_CLASS));
 
-   manager_top = efl_ui_focus_util_active_manager(EFL_UI_FOCUS_UTIL_CLASS, obj);
+   manager_top = efl_ui_focus_util_active_manager(obj);
    logical = efl_ui_focus_manager_focus_get(manager_top);
 
    if (elm_widget_is(logical))
@@ -276,7 +276,7 @@ elm_object_focus_next(Evas_Object        *obj,
 
         if (legacy_target)
           {
-             efl_ui_focus_util_focus(EFL_UI_FOCUS_UTIL_CLASS, legacy_target);
+             efl_ui_focus_util_focus(legacy_target);
              if (elm_object_focused_object_get(top) == legacy_target)
                {
                   legacy_focus_move = EINA_TRUE;
@@ -314,7 +314,7 @@ elm_object_focus_next_object_get(const Evas_Object  *obj,
    MAPPING()
    #undef MAP
 
-   return efl_ui_focus_manager_request_move(efl_ui_focus_util_active_manager(EFL_UI_FOCUS_UTIL_CLASS, top), dir, NULL, EINA_FALSE);
+   return efl_ui_focus_manager_request_move(efl_ui_focus_util_active_manager(top), dir, NULL, EINA_FALSE);
    */
    return efl_ui_widget_focus_next_object_get(obj, dir);
    //
@@ -422,7 +422,7 @@ elm_object_focus_set(Evas_Object *obj,
           }
 
         if (focus)
-          efl_ui_focus_util_focus(EFL_UI_FOCUS_UTIL_CLASS, obj);
+          efl_ui_focus_util_focus(obj);
         else
           {
              if (efl_ui_focus_manager_focus_get(efl_ui_focus_object_focus_manager_get(obj)) == obj)
index ac1bb32..c78ca4a 100644 (file)
@@ -498,7 +498,7 @@ _menu_item_activate_cb(void *data,
              if (eo_item2 != EO_OBJ(item))
                elm_menu_item_selected_set(eo_item2, 0);
           }
-        efl_access_object_event_emit(EFL_ACCESS_OBJECT_MIXIN, EO_OBJ(item->parent), EFL_ACCESS_SELECTION_EVENT_SELECTION_CHANGED, NULL);
+        efl_access_object_event_emit(EO_OBJ(item->parent), EFL_ACCESS_SELECTION_EVENT_SELECTION_CHANGED, NULL);
      }
    else
      {
@@ -513,7 +513,7 @@ _menu_item_activate_cb(void *data,
                   elm_menu_item_selected_set(eo_item2, 0);
                }
           }
-        efl_access_object_event_emit(EFL_ACCESS_OBJECT_MIXIN, WIDGET(item), EFL_ACCESS_SELECTION_EVENT_SELECTION_CHANGED, NULL);
+        efl_access_object_event_emit(WIDGET(item), EFL_ACCESS_SELECTION_EVENT_SELECTION_CHANGED, NULL);
         if (sd->menu_bar && was_open)
           _menu_item_select_cb(item, NULL, NULL, NULL);
      }
index a993a8c..a4789cd 100644 (file)
@@ -199,8 +199,7 @@ _elm_sys_notify_servers_get(const Eo            *obj EINA_UNUSED,
 }
 
 EOLIAN static Elm_Sys_Notify *
-_elm_sys_notify_singleton_get(Eo   *obj EINA_UNUSED,
-                              void *sd  EINA_UNUSED)
+_elm_sys_notify_singleton_get(void)
 {
    if (!_singleton)
      _singleton = efl_add(MY_CLASS, efl_main_loop_get());
@@ -224,7 +223,7 @@ _elm_sys_notify_class_constructor(Efl_Class *klass EINA_UNUSED)
 void
 _elm_unneed_sys_notify(void)
 {
-   Elm_Sys_Notify *manager = elm_sys_notify_singleton_get();
+   Elm_Sys_Notify *manager = elm_obj_sys_notify_singleton_get();
    if (manager)
      {
         elm_obj_sys_notify_servers_set(manager, ELM_SYS_NOTIFY_SERVER_NONE);
@@ -242,7 +241,7 @@ elm_need_sys_notify(void)
    /* In theory, there can be N notification managers, but
     * in the implementation there will be only one: the
     * singleton which is initialized here. */
-   manager = elm_sys_notify_singleton_get();
+   manager = elm_obj_sys_notify_singleton_get();
    if (EINA_UNLIKELY(!manager))
      {
         CRI("Failed to get notification manager");
index 9c57c93..585d09a 100644 (file)
@@ -1128,7 +1128,7 @@ _efl_ui_theme_efl_object_destructor(Eo *obj, Efl_Ui_Theme_Data *pd)
 }
 
 EOLIAN static Efl_Ui_Theme *
-_efl_ui_theme_default_get(const Eo *obj EINA_UNUSED, void *pd EINA_UNUSED)
+_efl_ui_theme_default_get(void)
 {
    if (theme_default)
      return theme_default->eo_theme;
index 63074cc..9e33e6e 100644 (file)
@@ -1850,13 +1850,13 @@ _efl_object_event_freeze_count_get(const Eo *obj EINA_UNUSED, Efl_Object_Data *p
 }
 
 EOLIAN static void
-_efl_object_event_global_freeze(Eo *klass EINA_UNUSED, void *pd EINA_UNUSED)
+_efl_object_event_global_freeze(void)
 {
    event_freeze_count++;
 }
 
 EOLIAN static void
-_efl_object_event_global_thaw(Eo *klass EINA_UNUSED, void *pd EINA_UNUSED)
+_efl_object_event_global_thaw(void)
 {
    if (event_freeze_count > 0)
      {
@@ -1869,7 +1869,7 @@ _efl_object_event_global_thaw(Eo *klass EINA_UNUSED, void *pd EINA_UNUSED)
 }
 
 EOLIAN static int
-_efl_object_event_global_freeze_count_get(const Eo *klass EINA_UNUSED, void *pd EINA_UNUSED)
+_efl_object_event_global_freeze_count_get(void)
 {
    return event_freeze_count;
 }
index b3080e4..8932181 100644 (file)
@@ -121,24 +121,27 @@ struct function_definition_generator
                           << " __return_value = "
                           ).generate(sink, attributes::unused, ctx)) return false;
 
-      std::string object_flag;
-      if (f.is_static) object_flag = "_eo_class()";
-      else object_flag = "_eo_ptr()";
+      std::tuple<std::string, std::string, std::vector<attributes::parameter_def> > params;
+      if (f.is_static)
+        params = std::make_tuple(f.c_name, "", f.parameters);
+      else
+        params = std::make_tuple(f.c_name, "_eo_ptr()", f.parameters);
 
       if(!as_generator
-         (" ::" << string << "(" << string <<
-          *(
-            "\n" << scope_tab << scope_tab << ", "
+         (" ::" << string << "(" << string << ((!f.is_static && (f.parameters.size() > 0)) ? "," : "")
+          <<
+          (
+            ("\n" << scope_tab << scope_tab
             <<
             (
              attribute_conditional([] (attributes::parameter_def const& p)
              { return p.direction == attributes::parameter_direction::in; })
              [converting_argument]
              | ("& __out_param_" << attribute_reorder<2>(string))
-            )
+            )) % ","
           )
           << ");\n"
-         ).generate(sink, std::make_tuple(f.c_name, object_flag, f.parameters), ctx))
+         ).generate(sink, params, ctx))
         return false;
 
       auto out_assignments =
index 8b02713..a617e50 100644 (file)
@@ -136,14 +136,10 @@ efl_input_event_instance_clean(Eo *klass)
 /* Internal EO APIs */
 
 EOAPI EFL_FUNC_BODY_CONST(efl_input_legacy_info_get, void *, NULL)
-EOAPI EFL_FUNC_BODYV_CONST(efl_input_instance_get, Efl_Input_Event *, NULL, EFL_FUNC_CALL(owner, priv), Efl_Object *owner, void **priv)
 
 #define EFL_INPUT_EVENT_EXTRA_OPS \
    EFL_OBJECT_OP_FUNC(efl_input_legacy_info_get, NULL)
 
-#define EFL_INPUT_EVENT_EXTRA_CLASS_OPS \
-   EFL_OBJECT_OP_FUNC(efl_input_instance_get, NULL)
-
 #include "efl_input_event.eo.c"
 #include "efl_input_state.eo.c"
 #include "efl_input_interface.eo.c"
index 2cab632..957cb30 100644 (file)
@@ -16,7 +16,7 @@ EFL_START_TEST(efl_app_test_efl_build_version)
 
    ecore_init();
 
-   app = efl_app_main_get(EFL_APP_CLASS);
+   app = efl_app_main_get();
    fail_if(!efl_isa(app, EFL_APP_CLASS));
 
    efl_build_version_set(EFL_VERSION_MAJOR, EFL_VERSION_MINOR, 0, 0, NULL, EFL_BUILD_ID);
index 63bad16..e7e5a2e 100644 (file)
@@ -96,7 +96,7 @@ EFL_END_TEST
 
 EFL_START_TEST(efl_core_env_test_process)
 {
-   Efl_Core_Env *env_fork, *env = efl_env_self(EFL_CORE_PROC_ENV_CLASS);
+   Efl_Core_Env *env_fork, *env = efl_env_self();
 
    ck_assert(env);
 
@@ -110,7 +110,7 @@ EFL_END_TEST
 
 EFL_START_TEST(efl_core_env_test_undepend_fork)
 {
-   Efl_Core_Env *env_fork, *env = efl_env_self(EFL_CORE_PROC_ENV_CLASS);
+   Efl_Core_Env *env_fork, *env = efl_env_self();
 
    ck_assert(env);
 
index b37ba41..0ab7bb6 100644 (file)
@@ -15,24 +15,24 @@ EFL_START_TEST(efl_app_test_efl_loop_register)
 
    ecore_init();
 
-   t = efl_provider_find(efl_app_main_get(EFL_APP_CLASS), EFL_LOOP_CLASS);
+   t = efl_provider_find(efl_app_main_get(), EFL_LOOP_CLASS);
    fail_if(!efl_isa(t, EFL_LOOP_CLASS));
    fail_if(!efl_isa(t, EFL_APP_CLASS));
 
-   t = efl_provider_find(efl_app_main_get(EFL_APP_CLASS), EFL_LOOP_TIMER_CLASS);
+   t = efl_provider_find(efl_app_main_get(), EFL_LOOP_TIMER_CLASS);
    fail_if(t != NULL);
 
-   n = efl_add(EFL_LOOP_TIMER_CLASS, efl_app_main_get(EFL_APP_CLASS),
+   n = efl_add(EFL_LOOP_TIMER_CLASS, efl_app_main_get(),
                efl_loop_timer_interval_set(efl_added, 1.0));
-   efl_loop_register(efl_app_main_get(EFL_APP_CLASS), EFL_LOOP_TIMER_CLASS, n);
+   efl_loop_register(efl_app_main_get(), EFL_LOOP_TIMER_CLASS, n);
 
-   t = efl_provider_find(efl_app_main_get(EFL_APP_CLASS), EFL_LOOP_TIMER_CLASS);
+   t = efl_provider_find(efl_app_main_get(), EFL_LOOP_TIMER_CLASS);
    fail_if(!efl_isa(t, EFL_LOOP_TIMER_CLASS));
    fail_if(t != n);
 
-   efl_loop_unregister(efl_app_main_get(EFL_APP_CLASS), EFL_LOOP_TIMER_CLASS, n);
+   efl_loop_unregister(efl_app_main_get(), EFL_LOOP_TIMER_CLASS, n);
 
-   t = efl_provider_find(efl_app_main_get(EFL_APP_CLASS), EFL_LOOP_TIMER_CLASS);
+   t = efl_provider_find(efl_app_main_get(), EFL_LOOP_TIMER_CLASS);
    fail_if(t != NULL);
 
    ecore_shutdown();
index 999c5f1..38d16a9 100644 (file)
@@ -66,7 +66,7 @@ EFL_END_TEST
 
 EFL_START_TEST(efl_app_test_loop_timer_invalid)
 {
-   Efl_Object *t = efl_add(EFL_LOOP_TIMER_CLASS, efl_app_main_get(EFL_APP_CLASS));
+   Efl_Object *t = efl_add(EFL_LOOP_TIMER_CLASS, efl_app_main_get());
    fail_if(t != NULL);
 }
 EFL_END_TEST
index 1a150ff..cf83eaf 100644 (file)
@@ -236,7 +236,7 @@ _resolve_done(void *data, const Eina_Value v, const Eina_Future *dead_future EIN
 static void
 _resolve(struct resolve_ctx *ctx, const char *address, int family, int flags)
 {
-   ctx->future = efl_net_ip_address_resolve(EFL_NET_IP_ADDRESS_CLASS,
+   ctx->future = efl_net_ip_address_resolve(
                                             address, family, flags);
    ck_assert_ptr_ne(ctx->future, NULL);
    ctx->future = eina_future_then(ctx->future, _resolve_done, ctx, NULL);
@@ -402,7 +402,7 @@ EFL_START_TEST(ecore_test_efl_net_ip_address_ipv4_create_ok)
 
    addr.sin_port = eina_htons(12345);
    addr.sin_addr.s_addr = eina_htonl(0xabcdefafU);
-   o = efl_net_ip_address_create(EFL_NET_IP_ADDRESS_CLASS,
+   o = efl_net_ip_address_create(
                                  eina_ntohs(addr.sin_port),
                                  slice);
    _ipv4_check(o, &addr);
@@ -410,7 +410,7 @@ EFL_START_TEST(ecore_test_efl_net_ip_address_ipv4_create_ok)
 
    addr.sin_port = eina_htons(8081);
    addr.sin_addr.s_addr = eina_htonl(0);
-   o = efl_net_ip_address_create(EFL_NET_IP_ADDRESS_CLASS,
+   o = efl_net_ip_address_create(
                                  eina_ntohs(addr.sin_port),
                                  slice);
    _ipv4_check(o, &addr);
@@ -418,7 +418,7 @@ EFL_START_TEST(ecore_test_efl_net_ip_address_ipv4_create_ok)
 
    addr.sin_port = eina_htons(0);
    addr.sin_addr.s_addr = eina_htonl(0x12345678);
-   o = efl_net_ip_address_create(EFL_NET_IP_ADDRESS_CLASS,
+   o = efl_net_ip_address_create(
                                  eina_ntohs(addr.sin_port),
                                  slice);
    _ipv4_check(o, &addr);
@@ -434,7 +434,7 @@ EFL_START_TEST(ecore_test_efl_net_ip_address_ipv4_create_fail)
    Eo *o;
 
    TRAP_ERRORS_BEGIN(eina_safety, ERR, "safety check failed: address.len != 4 && address.len != 16 is true");
-   o = efl_net_ip_address_create(EFL_NET_IP_ADDRESS_CLASS,
+   o = efl_net_ip_address_create(
                                  1234,
                                  wrong_slice);
    ck_assert_ptr_eq(o, NULL);
@@ -452,14 +452,14 @@ EFL_START_TEST(ecore_test_efl_net_ip_address_ipv4_create_sockaddr_ok)
 
    addr.sin_port = eina_htons(12345);
    addr.sin_addr.s_addr = eina_htonl(0xabcdefafU);
-   o = efl_net_ip_address_create_sockaddr(EFL_NET_IP_ADDRESS_CLASS, &addr);
+   o = efl_net_ip_address_create_sockaddr(&addr);
    ck_assert_ptr_ne(&addr, efl_net_ip_address_sockaddr_get(o));
    _ipv4_check(o, &addr);
    efl_unref(o);
 
    addr.sin_port = eina_htons(0);
    addr.sin_addr.s_addr = eina_htonl(0);
-   o = efl_net_ip_address_create_sockaddr(EFL_NET_IP_ADDRESS_CLASS, &addr);
+   o = efl_net_ip_address_create_sockaddr(&addr);
    ck_assert_ptr_ne(&addr, efl_net_ip_address_sockaddr_get(o));
    _ipv4_check(o, &addr);
    efl_unref(o);
@@ -475,12 +475,12 @@ EFL_START_TEST(ecore_test_efl_net_ip_address_ipv4_create_sockaddr_fail)
    Eo *o;
 
    TRAP_ERRORS_BEGIN(eina_safety, ERR, "safety check failed: sockaddr == NULL");
-   o = efl_net_ip_address_create_sockaddr(EFL_NET_IP_ADDRESS_CLASS, NULL);
+   o = efl_net_ip_address_create_sockaddr(NULL);
    ck_assert_ptr_eq(o, NULL);
    TRAP_ERRORS_FINISH(1);
 
    TRAP_ERRORS_BEGIN(eina_safety, ERR, "safety check failed: (sockaddr->sa_family != AF_INET) && (sockaddr->sa_family != AF_INET6) is true");
-   o = efl_net_ip_address_create_sockaddr(EFL_NET_IP_ADDRESS_CLASS, &addr);
+   o = efl_net_ip_address_create_sockaddr(&addr);
    ck_assert_ptr_eq(o, NULL);
    TRAP_ERRORS_FINISH(1);
 
@@ -491,22 +491,22 @@ EFL_START_TEST(ecore_test_efl_net_ip_address_ipv4_parse_ok)
 {
    Eo *o;
 
-   o = efl_net_ip_address_parse(EFL_NET_IP_ADDRESS_CLASS, "127.0.0.1:12345");
+   o = efl_net_ip_address_parse( "127.0.0.1:12345");
    ck_assert_ptr_ne(o, NULL);
    ck_assert_str_eq(efl_net_ip_address_string_get(o), "127.0.0.1:12345");
    efl_unref(o);
 
-   o = efl_net_ip_address_parse(EFL_NET_IP_ADDRESS_CLASS, "127.0.0.1:0");
+   o = efl_net_ip_address_parse( "127.0.0.1:0");
    ck_assert_ptr_ne(o, NULL);
    ck_assert_str_eq(efl_net_ip_address_string_get(o), "127.0.0.1");
    efl_unref(o);
 
-   o = efl_net_ip_address_parse(EFL_NET_IP_ADDRESS_CLASS, "127.0.0.1");
+   o = efl_net_ip_address_parse( "127.0.0.1");
    ck_assert_ptr_ne(o, NULL);
    ck_assert_str_eq(efl_net_ip_address_string_get(o), "127.0.0.1");
    efl_unref(o);
 
-   o = efl_net_ip_address_parse(EFL_NET_IP_ADDRESS_CLASS, "192.168.0.123:80");
+   o = efl_net_ip_address_parse( "192.168.0.123:80");
    ck_assert_ptr_ne(o, NULL);
    ck_assert_str_eq(efl_net_ip_address_string_get(o), "192.168.0.123:80");
    efl_unref(o);
@@ -519,30 +519,30 @@ EFL_START_TEST(ecore_test_efl_net_ip_address_ipv4_parse_fail)
    Eo *o;
 
    TRAP_ERRORS_BEGIN(eina_safety, ERR, "safety check failed: numeric_address == NULL");
-   o = efl_net_ip_address_parse(EFL_NET_IP_ADDRESS_CLASS, NULL);
+   o = efl_net_ip_address_parse( NULL);
    ck_assert_ptr_eq(o, NULL);
    TRAP_ERRORS_FINISH(1);
 
    /* incomplete numbers */
    TRAP_ERRORS_BEGIN(eina_safety, ERR, NULL);
-   o = efl_net_ip_address_parse(EFL_NET_IP_ADDRESS_CLASS, "127.");
+   o = efl_net_ip_address_parse( "127.");
    ck_assert_ptr_eq(o, NULL);
    TRAP_ERRORS_FINISH(0); /* no error messages! */
 
    TRAP_ERRORS_BEGIN(eina_safety, ERR, NULL);
-   o = efl_net_ip_address_parse(EFL_NET_IP_ADDRESS_CLASS, "127.0.0.");
+   o = efl_net_ip_address_parse( "127.0.0.");
    ck_assert_ptr_eq(o, NULL);
    TRAP_ERRORS_FINISH(0); /* no error messages! */
 
    /* hostnames are not numeric, shouldn't return an object */
    TRAP_ERRORS_BEGIN(eina_safety, ERR, NULL);
-   o = efl_net_ip_address_parse(EFL_NET_IP_ADDRESS_CLASS, "google.com");
+   o = efl_net_ip_address_parse( "google.com");
    ck_assert_ptr_eq(o, NULL);
    TRAP_ERRORS_FINISH(0); /* no error messages! */
 
    /* port names are not numeric, shouldn't return an object */
    TRAP_ERRORS_BEGIN(eina_safety, ERR, NULL);
-   o = efl_net_ip_address_parse(EFL_NET_IP_ADDRESS_CLASS, "127.0.0.1:http");
+   o = efl_net_ip_address_parse( "127.0.0.1:http");
    ck_assert_ptr_eq(o, NULL);
    TRAP_ERRORS_FINISH(0); /* no error messages! */
 
@@ -589,13 +589,13 @@ EFL_START_TEST(ecore_test_efl_net_ip_address_ipv4_resolve_fail)
    struct resolve_ctx ctx = { };
 
    TRAP_ERRORS_BEGIN(eina_safety, ERR, "safety check failed: address == NULL");
-   ctx.future = efl_net_ip_address_resolve(EFL_NET_IP_ADDRESS_CLASS,
+   ctx.future = efl_net_ip_address_resolve(
                                            NULL, 0, 0);
    ck_assert_ptr_eq(ctx.future, NULL);
    TRAP_ERRORS_FINISH(1);
 
    TRAP_ERRORS_BEGIN(eina_safety, ERR, "safety check failed: (family != AF_UNSPEC) && (family != AF_INET) && (family != AF_INET6) is true");
-   ctx.future = efl_net_ip_address_resolve(EFL_NET_IP_ADDRESS_CLASS,
+   ctx.future = efl_net_ip_address_resolve(
                                            "localhost", 1234, 0);
    ck_assert_ptr_eq(ctx.future, NULL);
    TRAP_ERRORS_FINISH(1);
@@ -643,7 +643,7 @@ EFL_START_TEST(ecore_test_efl_net_ip_address_ipv4_checks)
           .sin_port = 0,
           .sin_addr.s_addr = eina_htonl(itr->addr),
         };
-        Eo *o = efl_net_ip_address_create_sockaddr(EFL_NET_IP_ADDRESS_CLASS, &a);
+        Eo *o = efl_net_ip_address_create_sockaddr(&a);
         ck_assert_ptr_ne(o, NULL);
 
         ck_assert_int_eq(efl_net_ip_address_ipv4_class_a_check(o), itr->is_a);
@@ -799,7 +799,7 @@ EFL_START_TEST(ecore_test_efl_net_ip_address_ipv6_create_ok)
 
    addr.sin6_port = eina_htons(12365);
    _ipv6_set(&addr, 1, 2, 3, 4, 5, 6, 7, 8);
-   o = efl_net_ip_address_create(EFL_NET_IP_ADDRESS_CLASS,
+   o = efl_net_ip_address_create(
                                  eina_ntohs(addr.sin6_port),
                                  slice);
    _ipv6_check(o, &addr);
@@ -807,7 +807,7 @@ EFL_START_TEST(ecore_test_efl_net_ip_address_ipv6_create_ok)
 
    addr.sin6_port = eina_htons(8081);
    _ipv6_set(&addr, 0, 0, 0, 0, 0, 0, 0, 0);
-   o = efl_net_ip_address_create(EFL_NET_IP_ADDRESS_CLASS,
+   o = efl_net_ip_address_create(
                                  eina_ntohs(addr.sin6_port),
                                  slice);
    _ipv6_check(o, &addr);
@@ -815,7 +815,7 @@ EFL_START_TEST(ecore_test_efl_net_ip_address_ipv6_create_ok)
 
    addr.sin6_port = eina_htons(0);
    _ipv6_set(&addr, 0, 0, 0, 0, 0, 0, 0, 1);
-   o = efl_net_ip_address_create(EFL_NET_IP_ADDRESS_CLASS,
+   o = efl_net_ip_address_create(
                                  eina_ntohs(addr.sin6_port),
                                  slice);
    _ipv6_check(o, &addr);
@@ -833,14 +833,14 @@ EFL_START_TEST(ecore_test_efl_net_ip_address_ipv6_create_sockaddr_ok)
 
    addr.sin6_port = eina_htons(12345);
    _ipv6_set(&addr, 1, 2, 3, 4, 5, 6, 7, 8);
-   o = efl_net_ip_address_create_sockaddr(EFL_NET_IP_ADDRESS_CLASS, &addr);
+   o = efl_net_ip_address_create_sockaddr(&addr);
    ck_assert_ptr_ne(&addr, efl_net_ip_address_sockaddr_get(o));
    _ipv6_check(o, &addr);
    efl_unref(o);
 
    addr.sin6_port = eina_htons(0);
    _ipv6_set(&addr, 0, 0, 0, 0, 0, 0, 0, 0);
-   o = efl_net_ip_address_create_sockaddr(EFL_NET_IP_ADDRESS_CLASS, &addr);
+   o = efl_net_ip_address_create_sockaddr(&addr);
    ck_assert_ptr_ne(&addr, efl_net_ip_address_sockaddr_get(o));
    _ipv6_check(o, &addr);
    efl_unref(o);
@@ -852,86 +852,86 @@ EFL_START_TEST(ecore_test_efl_net_ip_address_ipv6_parse_ok)
 {
    Eo *o;
 
-   o = efl_net_ip_address_parse(EFL_NET_IP_ADDRESS_CLASS, "[::1]:12345");
+   o = efl_net_ip_address_parse( "[::1]:12345");
    ck_assert_ptr_ne(o, NULL);
    ck_assert_str_eq(efl_net_ip_address_string_get(o), "[::1]:12345");
    efl_unref(o);
 
-   o = efl_net_ip_address_parse(EFL_NET_IP_ADDRESS_CLASS, "[::1]:0");
+   o = efl_net_ip_address_parse( "[::1]:0");
    ck_assert_ptr_ne(o, NULL);
    ck_assert_str_eq(efl_net_ip_address_string_get(o), "[::1]");
    efl_unref(o);
 
-   o = efl_net_ip_address_parse(EFL_NET_IP_ADDRESS_CLASS, "[::1]");
+   o = efl_net_ip_address_parse( "[::1]");
    ck_assert_ptr_ne(o, NULL);
    ck_assert_str_eq(efl_net_ip_address_string_get(o), "[::1]");
    efl_unref(o);
 
-   o = efl_net_ip_address_parse(EFL_NET_IP_ADDRESS_CLASS, "::1");
+   o = efl_net_ip_address_parse( "::1");
    ck_assert_ptr_ne(o, NULL);
    ck_assert_str_eq(efl_net_ip_address_string_get(o), "[::1]");
    efl_unref(o);
 
-   o = efl_net_ip_address_parse(EFL_NET_IP_ADDRESS_CLASS, "[::]:12345");
+   o = efl_net_ip_address_parse( "[::]:12345");
    ck_assert_ptr_ne(o, NULL);
    ck_assert_str_eq(efl_net_ip_address_string_get(o), "[::]:12345");
    efl_unref(o);
 
-   o = efl_net_ip_address_parse(EFL_NET_IP_ADDRESS_CLASS, "[::]:0");
+   o = efl_net_ip_address_parse( "[::]:0");
    ck_assert_ptr_ne(o, NULL);
    ck_assert_str_eq(efl_net_ip_address_string_get(o), "[::]");
    efl_unref(o);
 
-   o = efl_net_ip_address_parse(EFL_NET_IP_ADDRESS_CLASS, "[::]");
+   o = efl_net_ip_address_parse( "[::]");
    ck_assert_ptr_ne(o, NULL);
    ck_assert_str_eq(efl_net_ip_address_string_get(o), "[::]");
    efl_unref(o);
 
-   o = efl_net_ip_address_parse(EFL_NET_IP_ADDRESS_CLASS, "::");
+   o = efl_net_ip_address_parse( "::");
    ck_assert_ptr_ne(o, NULL);
    ck_assert_str_eq(efl_net_ip_address_string_get(o), "[::]");
    efl_unref(o);
 
    /* IPv4 Mapped */
-   o = efl_net_ip_address_parse(EFL_NET_IP_ADDRESS_CLASS, "[::ffff:192.168.0.1]:12345");
+   o = efl_net_ip_address_parse( "[::ffff:192.168.0.1]:12345");
    ck_assert_ptr_ne(o, NULL);
    ck_assert_str_eq(efl_net_ip_address_string_get(o), "[::ffff:192.168.0.1]:12345");
    efl_unref(o);
 
-   o = efl_net_ip_address_parse(EFL_NET_IP_ADDRESS_CLASS, "[::ffff:192.168.0.1]");
+   o = efl_net_ip_address_parse( "[::ffff:192.168.0.1]");
    ck_assert_ptr_ne(o, NULL);
    ck_assert_str_eq(efl_net_ip_address_string_get(o), "[::ffff:192.168.0.1]");
    efl_unref(o);
 
    /* IPv4 Compatible */
-   o = efl_net_ip_address_parse(EFL_NET_IP_ADDRESS_CLASS, "[::192.168.0.1]:12345");
+   o = efl_net_ip_address_parse( "[::192.168.0.1]:12345");
    ck_assert_ptr_ne(o, NULL);
    ck_assert_str_eq(efl_net_ip_address_string_get(o), "[::192.168.0.1]:12345");
    efl_unref(o);
 
-   o = efl_net_ip_address_parse(EFL_NET_IP_ADDRESS_CLASS, "[::192.168.0.1]");
+   o = efl_net_ip_address_parse( "[::192.168.0.1]");
    ck_assert_ptr_ne(o, NULL);
    ck_assert_str_eq(efl_net_ip_address_string_get(o), "[::192.168.0.1]");
    efl_unref(o);
 
    /* Link Local */
-   o = efl_net_ip_address_parse(EFL_NET_IP_ADDRESS_CLASS, "[fe80::1]:12345");
+   o = efl_net_ip_address_parse( "[fe80::1]:12345");
    ck_assert_ptr_ne(o, NULL);
    ck_assert_str_eq(efl_net_ip_address_string_get(o), "[fe80::1]:12345");
    efl_unref(o);
 
-   o = efl_net_ip_address_parse(EFL_NET_IP_ADDRESS_CLASS, "[fe80::1]");
+   o = efl_net_ip_address_parse( "[fe80::1]");
    ck_assert_ptr_ne(o, NULL);
    ck_assert_str_eq(efl_net_ip_address_string_get(o), "[fe80::1]");
    efl_unref(o);
 
    /* Site Local */
-   o = efl_net_ip_address_parse(EFL_NET_IP_ADDRESS_CLASS, "[fc00::1]:12345");
+   o = efl_net_ip_address_parse( "[fc00::1]:12345");
    ck_assert_ptr_ne(o, NULL);
    ck_assert_str_eq(efl_net_ip_address_string_get(o), "[fc00::1]:12345");
    efl_unref(o);
 
-   o = efl_net_ip_address_parse(EFL_NET_IP_ADDRESS_CLASS, "[fc00::1]");
+   o = efl_net_ip_address_parse( "[fc00::1]");
    ck_assert_ptr_ne(o, NULL);
    ck_assert_str_eq(efl_net_ip_address_string_get(o), "[fc00::1]");
    efl_unref(o);
@@ -947,18 +947,18 @@ EFL_START_TEST(ecore_test_efl_net_ip_address_ipv6_parse_fail)
 
    /* incomplete numbers */
    TRAP_ERRORS_BEGIN(eina_safety, ERR, NULL);
-   o = efl_net_ip_address_parse(EFL_NET_IP_ADDRESS_CLASS, "::9999999");
+   o = efl_net_ip_address_parse( "::9999999");
    ck_assert_ptr_eq(o, NULL);
    TRAP_ERRORS_FINISH(0); /* no error messages! */
 
    TRAP_ERRORS_BEGIN(eina_safety, ERR, NULL);
-   o = efl_net_ip_address_parse(EFL_NET_IP_ADDRESS_CLASS, "ab:cd:ef:gh");
+   o = efl_net_ip_address_parse( "ab:cd:ef:gh");
    ck_assert_ptr_eq(o, NULL);
    TRAP_ERRORS_FINISH(0); /* no error messages! */
 
    /* port names are not numeric, shouldn't return an object */
    TRAP_ERRORS_BEGIN(eina_safety, ERR, NULL);
-   o = efl_net_ip_address_parse(EFL_NET_IP_ADDRESS_CLASS, "[::1]:http");
+   o = efl_net_ip_address_parse( "[::1]:http");
    ck_assert_ptr_eq(o, NULL);
    TRAP_ERRORS_FINISH(0); /* no error messages! */
 
@@ -1152,7 +1152,7 @@ EFL_START_TEST(ecore_test_efl_net_ip_address_ipv6_checks)
         r = inet_pton(AF_INET6, itr->str, ia);
         ck_assert_int_eq(r, 1);
 
-        Eo *o = efl_net_ip_address_create_sockaddr(EFL_NET_IP_ADDRESS_CLASS, &a);
+        Eo *o = efl_net_ip_address_create_sockaddr(&a);
         ck_assert_ptr_ne(o, NULL);
 
         ck_assert_int_eq(efl_net_ip_address_ipv4_class_a_check(o), EINA_FALSE);
index 5108621..674d1f8 100644 (file)
@@ -3827,24 +3827,15 @@ Dummy_MyInt _dummy_test_object_bypass_typedef(EINA_UNUSED Eo *obj, EINA_UNUSED D
 /* Class Properties */
 static int _dummy_test_object_klass_prop = 0;
 
-int _dummy_test_object_klass_prop_get(const Eo *klass, EINA_UNUSED void *pd)
+int _dummy_test_object_klass_prop_get(void)
 {
-    EINA_LOG_ERR("FAIL on GET");
-   if (klass != dummy_test_object_class_get())
-     {
-        eina_error_set(EINVAL);
-        return -1;
-     }
+   EINA_LOG_ERR("FAIL on GET");
    return _dummy_test_object_klass_prop;
 }
 
-void _dummy_test_object_klass_prop_set(Eo *klass, EINA_UNUSED void *pd, int value)
+void _dummy_test_object_klass_prop_set(int value)
 {
-    EINA_LOG_ERR("FAIL on SET");
-   if (klass != dummy_test_object_class_get())
-     {
-        eina_error_set(EINVAL);
-     }
+   EINA_LOG_ERR("FAIL on SET");
    _dummy_test_object_klass_prop = value;
 }
 
@@ -3858,7 +3849,7 @@ Eina_Future* _dummy_test_object_get_future(EINA_UNUSED Eo *obj, Dummy_Test_Objec
 {
     if (pd->promise == NULL)
       {
-         Eo *loop = efl_app_main_get(EFL_APP_CLASS);
+         Eo *loop = efl_app_main_get();
          Eina_Future_Scheduler *scheduler = efl_loop_future_scheduler_get(loop);
          pd->promise = eina_promise_new(scheduler, _promise_cancelled, pd);
       }
@@ -3989,14 +3980,14 @@ _dummy_child_class_destructor(Efl_Class *klass)
 }
 
 // Inherit
-int _dummy_inherit_helper_receive_dummy_and_call_int_out(Eo *obj EINA_UNUSED, void *pd EINA_UNUSED, Dummy_Test_Object *x)
+int _dummy_inherit_helper_receive_dummy_and_call_int_out(Dummy_Test_Object *x)
 {
   int v = 8;
   dummy_test_object_int_out (x, 5, &v);
   return v;
 }
 
-const char* _dummy_inherit_helper_receive_dummy_and_call_in_stringshare(Eo *obj EINA_UNUSED, void *pd EINA_UNUSED, Dummy_Test_Object *x)
+const char* _dummy_inherit_helper_receive_dummy_and_call_in_stringshare(Dummy_Test_Object *x)
 {
   return dummy_inherit_iface_stringshare_test (x, eina_stringshare_add("hello world"));
 }
index 8b1d87c..79056a7 100644 (file)
@@ -169,7 +169,7 @@ EFL_START_TEST(efl_ui_homogeneous_model_test)
    ck_assert_int_eq(_property_error_expected(model, "item.width"), EAGAIN);
    ck_assert_int_eq(_property_error_expected(model, "item.height"), EAGAIN);
 
-   ret__ = efl_loop_begin(efl_app_main_get(EFL_APP_CLASS));
+   ret__ = efl_loop_begin(efl_app_main_get());
    real__ = efl_loop_exit_code_process(ret__);
    fail_if(real__ != 0);
 
@@ -240,7 +240,7 @@ EFL_START_TEST(efl_ui_exact_model_test)
    ck_assert_int_eq(_property_error_expected(model, "item.width"), EAGAIN);
    ck_assert_int_eq(_property_error_expected(model, "item.height"), EAGAIN);
 
-   ret__ = efl_loop_begin(efl_app_main_get(EFL_APP_CLASS));
+   ret__ = efl_loop_begin(efl_app_main_get());
    real__ = efl_loop_exit_code_process(ret__);
    fail_if(real__ != 0);
 
@@ -328,7 +328,7 @@ EFL_START_TEST(efl_ui_average_model_test)
    ck_assert_int_eq(_property_error_expected(model, "item.width"), EAGAIN);
    ck_assert_int_eq(_property_error_expected(model, "item.height"), EAGAIN);
 
-   ret__ = efl_loop_begin(efl_app_main_get(EFL_APP_CLASS));
+   ret__ = efl_loop_begin(efl_app_main_get());
    real__ = efl_loop_exit_code_process(ret__);
    fail_if(real__ != 0);
 
index 13791a2..16fce9f 100644 (file)
@@ -297,7 +297,7 @@ _check_chain(Efl_Ui_Focus_Manager *m, Efl_Ui_Focus_Object *objects[])
              efl_ui_focus_manager_reset_history(m);
              efl_ui_focus_manager_setup_on_first_touch(m, EFL_UI_FOCUS_DIRECTION_NEXT, root);
           }
-        next = efl_ui_focus_manager_focus_get(efl_ui_focus_util_active_manager(EFL_UI_FOCUS_UTIL_CLASS, m));
+        next = efl_ui_focus_manager_focus_get(efl_ui_focus_util_active_manager(m));
 
         ck_assert_ptr_eq(next, objects[i]);
      }
@@ -317,7 +317,7 @@ _check_chain(Efl_Ui_Focus_Manager *m, Efl_Ui_Focus_Object *objects[])
              efl_ui_focus_manager_setup_on_first_touch(m, EFL_UI_FOCUS_DIRECTION_PREVIOUS, root);
           }
 
-        prev = efl_ui_focus_manager_focus_get(efl_ui_focus_util_active_manager(EFL_UI_FOCUS_UTIL_CLASS, m));
+        prev = efl_ui_focus_manager_focus_get(efl_ui_focus_util_active_manager(m));
         ck_assert_ptr_eq(prev, objects[i - 1]);
      }
    ck_assert_ptr_eq(efl_ui_focus_manager_move(m, EFL_UI_FOCUS_DIRECTION_PREVIOUS), NULL);
index a50f3b8..d0f89aa 100644 (file)
@@ -220,7 +220,7 @@ EFL_START_TEST(elm_genlist_test_atspi_children_events_add)
 
    Elm_Object_Item *it[3];
 
-   efl_access_object_event_handler_add(EFL_ACCESS_OBJECT_MIXIN, _children_changed_cb, NULL);
+   efl_access_object_event_handler_add(_children_changed_cb, NULL);
 
    it[0] = elm_genlist_item_append(genlist, &itc, NULL, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
    ck_assert(genlist == current);
@@ -256,7 +256,7 @@ EFL_START_TEST(elm_genlist_test_atspi_children_events_del1)
    it[1] = elm_genlist_item_prepend(genlist, &itc, NULL, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
    it[2] = elm_genlist_item_append(genlist, &itc, NULL, NULL, ELM_GENLIST_ITEM_TREE, NULL, NULL);
 
-   efl_access_object_event_handler_add(EFL_ACCESS_OBJECT_MIXIN, _children_changed_cb, NULL);
+   efl_access_object_event_handler_add(_children_changed_cb, NULL);
 
    elm_object_item_del(it[0]);
    ck_assert(genlist == current);
@@ -283,7 +283,7 @@ EFL_START_TEST(elm_genlist_test_atspi_children_events_del2)
 
    it = elm_genlist_item_append(genlist, &itc, NULL, NULL, ELM_GENLIST_ITEM_NONE, NULL, NULL);
 
-   efl_access_object_event_handler_add(EFL_ACCESS_OBJECT_MIXIN, _children_changed_cb, NULL);
+   efl_access_object_event_handler_add(_children_changed_cb, NULL);
    elm_genlist_clear(genlist);
 
    ck_assert(genlist == current);
index 0c34691..06b268d 100644 (file)
@@ -165,12 +165,11 @@ EFL_END_TEST
 EFL_START_TEST (elm_win_test_app_exit_on_windows_close)
 {
    Eo *win = win_add(NULL, "win", ELM_WIN_BASIC);
-   Eo *app = efl_app_main_get(EFL_APP_CLASS);
    Eina_Value val, *exit_val;
    int code;
 
    val = eina_value_int_init(66);
-   efl_ui_win_exit_on_all_windows_closed_set(win, &val);
+   efl_ui_win_exit_on_all_windows_closed_set(&val);
    efl_gfx_entity_visible_set(win, EINA_TRUE);
 
    Eina_Bool fail_flag = EINA_FALSE;
@@ -180,7 +179,7 @@ EFL_START_TEST (elm_win_test_app_exit_on_windows_close)
    exit_val = efl_loop_begin(efl_loop_get(win));
    ck_assert(eina_value_int_get(exit_val, &code));
    ck_assert_int_eq(code, 66);
-   efl_ui_win_exit_on_all_windows_closed_set(app, &EINA_VALUE_EMPTY);
+   efl_ui_win_exit_on_all_windows_closed_set(&EINA_VALUE_EMPTY);
 }
 EFL_END_TEST
 
index de175fc..4352b65 100644 (file)
@@ -64,7 +64,7 @@ efl_main(void *data EINA_UNUSED,
 {
    Efl_Loop_Arguments *arge = ev->info;
 
-   
+
    fail_if(!arge->initialization);
    fprintf(stderr, "ARGC %d\n", eina_array_count(arge->argv));
    fail_if(eina_array_count(arge->argv) != 2);
@@ -84,10 +84,10 @@ EFL_START_TEST(efl_ui_test_init)
    _efl_startup_time = ecore_time_unix_get();
    _EFL_APP_VERSION_SET();
    fail_if(!ecore_init());
-   efl_event_callback_add(efl_app_main_get(EFL_APP_CLASS), EFL_LOOP_EVENT_ARGUMENTS, efl_main, NULL);
+   efl_event_callback_add(efl_app_main_get(), EFL_LOOP_EVENT_ARGUMENTS, efl_main, NULL);
    fail_if(!ecore_init_ex(argc, argv));
    __EFL_MAIN_CONSTRUCTOR;
-   ret__ = efl_loop_begin(efl_app_main_get(EFL_APP_CLASS));
+   ret__ = efl_loop_begin(efl_app_main_get());
    real__ = efl_loop_exit_code_process(ret__);
    fail_if(real__ != 0);
    __EFL_MAIN_DESTRUCTOR;
@@ -270,7 +270,7 @@ suite_setup(Eina_Bool legacy)
    else
      failed_count = _efl_suite_build_and_run(0, NULL,
                                              "Efl_Ui_Init", ui_init, NULL, NULL);
-     
+
    failed_count += !elm_init(1, (char*[]){"exe"});
    if (buffer)
      {
index 58b9eda..c3b1648 100644 (file)
@@ -171,15 +171,15 @@ main(int argc, char *argv[])
    efl_event_callback_priority_add(obj, EV_A_CHANGED, EFL_CALLBACK_PRIORITY_BEFORE, _a_changed_cb, (void *) 1);
    fail_if(pd->cb_count != 1);
 
-   fcount = efl_event_global_freeze_count_get(EO_CLASS);
+   fcount = efl_event_global_freeze_count_get();
    fail_if(fcount != 0);
 
-   efl_event_global_freeze(EO_CLASS);
-   fcount = efl_event_global_freeze_count_get(EO_CLASS);
+   efl_event_global_freeze();
+   fcount = efl_event_global_freeze_count_get();
    fail_if(fcount != 1);
 
-   efl_event_global_freeze(EO_CLASS);
-   fcount = efl_event_global_freeze_count_get(EO_CLASS);
+   efl_event_global_freeze();
+   fcount = efl_event_global_freeze_count_get();
    fail_if(fcount != 2);
 
    efl_event_callback_priority_add(obj, EV_A_CHANGED, EFL_CALLBACK_PRIORITY_BEFORE, _a_changed_cb, (void *) 2);
@@ -187,30 +187,30 @@ main(int argc, char *argv[])
 
    simple_a_set(obj, 2);
    fail_if(cb_count != 0);
-   efl_event_global_thaw(EO_CLASS);
-   fcount = efl_event_global_freeze_count_get(EO_CLASS);
+   efl_event_global_thaw();
+   fcount = efl_event_global_freeze_count_get();
    fail_if(fcount != 1);
 
-   efl_event_global_thaw(EO_CLASS);
-   fcount = efl_event_global_freeze_count_get(EO_CLASS);
+   efl_event_global_thaw();
+   fcount = efl_event_global_freeze_count_get();
    fail_if(fcount != 0);
 
    simple_a_set(obj, 3);
    fail_if(cb_count != 2);
 
    cb_count = 0;
-   efl_event_global_thaw(EO_CLASS);
-   fcount = efl_event_global_freeze_count_get(EO_CLASS);
+   efl_event_global_thaw();
+   fcount = efl_event_global_freeze_count_get();
    fail_if(fcount != 0);
 
-   efl_event_global_freeze(EO_CLASS);
-   fcount = efl_event_global_freeze_count_get(EO_CLASS);
+   efl_event_global_freeze();
+   fcount = efl_event_global_freeze_count_get();
    fail_if(fcount != 1);
 
    simple_a_set(obj, 2);
    fail_if(cb_count != 0);
-   efl_event_global_thaw(EO_CLASS);
-   fcount = efl_event_global_freeze_count_get(EO_CLASS);
+   efl_event_global_thaw();
+   fcount = efl_event_global_freeze_count_get();
    fail_if(fcount != 0);
 
    efl_event_callback_priority_add(obj, EV_RESTART, EFL_CALLBACK_PRIORITY_DEFAULT, _restart_1_cb, NULL);
index e6c0244..ba1e647 100644 (file)
@@ -29,7 +29,7 @@ EOAPI EFL_FUNC_BODYV(efl_canvas_object_simple_bar, int *, NULL, EFL_FUNC_CALL(x)
 static Eina_Bool
 _class_simple_class_initializer(Efl_Class *klass)
 {
-   const Efl_Object_Ops *opsp = NULL, *copsp = NULL;
+   const Efl_Object_Ops *opsp = NULL;
 
 #ifndef CLASS_SIMPLE_EXTRA_OPS
 #define CLASS_SIMPLE_EXTRA_OPS
@@ -45,12 +45,7 @@ _class_simple_class_initializer(Efl_Class *klass)
    );
    opsp = &ops;
 
-#ifdef CLASS_SIMPLE_EXTRA_CLASS_OPS
-   EFL_OPS_DEFINE(cops, CLASS_SIMPLE_EXTRA_CLASS_OPS);
-   copsp = &cops;
-#endif
-
-   return efl_class_functions_set(klass, opsp, copsp, NULL);
+   return efl_class_functions_set(klass, opsp, NULL, NULL);
 }
 
 static const Efl_Class_Description _class_simple_class_desc = {
index ee9cccc..0728dd4 100644 (file)
@@ -14,7 +14,7 @@ EOAPI EFL_FUNC_BODYV(function_as_argument_call_cb, char *, NULL, EFL_FUNC_CALL(a
 static Eina_Bool
 _function_as_argument_class_initializer(Efl_Class *klass)
 {
-   const Efl_Object_Ops *opsp = NULL, *copsp = NULL;
+   const Efl_Object_Ops *opsp = NULL;
 
 #ifndef FUNCTION_AS_ARGUMENT_EXTRA_OPS
 #define FUNCTION_AS_ARGUMENT_EXTRA_OPS
@@ -28,12 +28,7 @@ _function_as_argument_class_initializer(Efl_Class *klass)
    );
    opsp = &ops;
 
-#ifdef FUNCTION_AS_ARGUMENT_EXTRA_CLASS_OPS
-   EFL_OPS_DEFINE(cops, FUNCTION_AS_ARGUMENT_EXTRA_CLASS_OPS);
-   copsp = &cops;
-#endif
-
-   return efl_class_functions_set(klass, opsp, copsp, NULL);
+   return efl_class_functions_set(klass, opsp, NULL, NULL);
 }
 
 static const Efl_Class_Description _function_as_argument_class_desc = {
index 45cec76..2a6c28b 100644 (file)
@@ -59,7 +59,7 @@ static void __eolian_override_base_z_get(const Eo *obj EINA_UNUSED, Override_Dat
 static Eina_Bool
 _override_class_initializer(Efl_Class *klass)
 {
-   const Efl_Object_Ops *opsp = NULL, *copsp = NULL;
+   const Efl_Object_Ops *opsp = NULL;
 
 #ifndef OVERRIDE_EXTRA_OPS
 #define OVERRIDE_EXTRA_OPS
@@ -81,12 +81,7 @@ _override_class_initializer(Efl_Class *klass)
    );
    opsp = &ops;
 
-#ifdef OVERRIDE_EXTRA_CLASS_OPS
-   EFL_OPS_DEFINE(cops, OVERRIDE_EXTRA_CLASS_OPS);
-   copsp = &cops;
-#endif
-
-   return efl_class_functions_set(klass, opsp, copsp, NULL);
+   return efl_class_functions_set(klass, opsp, NULL, NULL);
 }
 
 static const Efl_Class_Description _override_class_desc = {
index 8712993..bf7e78b 100644 (file)
@@ -43,7 +43,7 @@ EOAPI EFL_VOID_FUNC_BODYV_FALLBACK(owning_test2, _owning_test2_ownership_fallbac
 static Eina_Bool
 _owning_class_initializer(Efl_Class *klass)
 {
-   const Efl_Object_Ops *opsp = NULL, *copsp = NULL;
+   const Efl_Object_Ops *opsp = NULL;
 
 #ifndef OWNING_EXTRA_OPS
 #define OWNING_EXTRA_OPS
@@ -56,12 +56,7 @@ _owning_class_initializer(Efl_Class *klass)
    );
    opsp = &ops;
 
-#ifdef OWNING_EXTRA_CLASS_OPS
-   EFL_OPS_DEFINE(cops, OWNING_EXTRA_CLASS_OPS);
-   copsp = &cops;
-#endif
-
-   return efl_class_functions_set(klass, opsp, copsp, NULL);
+   return efl_class_functions_set(klass, opsp, NULL, NULL);
 }
 
 static const Efl_Class_Description _owning_class_desc = {