jaehyun pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=0225db71c06cae4108813b3ce2ff92273ce9e53c

commit 0225db71c06cae4108813b3ce2ff92273ce9e53c
Author: Jaehyun Cho <jae_hyun....@samsung.com>
Date:   Thu Mar 21 21:06:09 2019 +0900

    elm_atspi_app_object: remove all legacy usage from eo files
    
    this takes the current generated output from eolian for legacy code in
    efl and adds it to the tree, then removes legacy references from the
    corresponding eo files. in the case where the entire eo file was for
    a legacy object, that eo file has been removed from the tree
    
    ref T7724
---
 src/Makefile_Elementary.am                         |  4 +-
 src/lib/elementary/elm_atspi_app_object.c          |  2 +-
 src/lib/elementary/elm_atspi_app_object.eo         | 12 -----
 src/lib/elementary/elm_atspi_app_object.h          |  4 +-
 src/lib/elementary/elm_atspi_app_object_eo.c       | 55 ++++++++++++++++++++++
 src/lib/elementary/elm_atspi_app_object_eo.h       | 24 ++++++++++
 .../elementary/elm_atspi_app_object_eo.legacy.h    | 17 +++++++
 src/lib/elementary/elm_priv.h                      |  1 +
 src/lib/elementary/meson.build                     |  2 +-
 9 files changed, 105 insertions(+), 16 deletions(-)

diff --git a/src/Makefile_Elementary.am b/src/Makefile_Elementary.am
index c006680071..b1fad382cc 100644
--- a/src/Makefile_Elementary.am
+++ b/src/Makefile_Elementary.am
@@ -144,7 +144,6 @@ elm_public_eolian_files += \
        lib/elementary/elm_multibuttonentry_part.eo \
        lib/elementary/elm_interface_scrollable.eo \
        lib/elementary/elm_atspi_bridge.eo \
-       lib/elementary/elm_atspi_app_object.eo \
        lib/elementary/efl_ui_image_zoomable_pan.eo \
        $(NULL)
 
@@ -256,6 +255,7 @@ lib/elementary/elm_access_eo.c \
 lib/elementary/elm_access_eo.legacy.c \
 lib/elementary/elm_actionslider_eo.c \
 lib/elementary/elm_actionslider_eo.legacy.c \
+lib/elementary/elm_atspi_app_object_eo.c \
 lib/elementary/elm_box_eo.c \
 lib/elementary/elm_box_eo.legacy.c \
 lib/elementary/elm_bubble_eo.c \
@@ -434,6 +434,7 @@ lib/elementary/efl_ui_win_legacy_eo.legacy.h \
 lib/elementary/efl_ui_win_socket_legacy_eo.legacy.h \
 lib/elementary/elm_access_eo.legacy.h \
 lib/elementary/elm_actionslider_eo.legacy.h \
+lib/elementary/elm_atspi_app_object_eo.legacy.h \
 lib/elementary/elm_box_eo.legacy.h \
 lib/elementary/elm_bubble_eo.legacy.h \
 lib/elementary/elm_calendar_eo.legacy.h \
@@ -541,6 +542,7 @@ lib/elementary/efl_ui_win_legacy_eo.h \
 lib/elementary/efl_ui_win_socket_legacy_eo.h \
 lib/elementary/elm_access_eo.h \
 lib/elementary/elm_actionslider_eo.h \
+lib/elementary/elm_atspi_app_object_eo.h \
 lib/elementary/elm_box_eo.h \
 lib/elementary/elm_bubble_eo.h \
 lib/elementary/elm_calendar_eo.h \
diff --git a/src/lib/elementary/elm_atspi_app_object.c 
b/src/lib/elementary/elm_atspi_app_object.c
index 77cfe7f93c..e1ef62ac91 100644
--- a/src/lib/elementary/elm_atspi_app_object.c
+++ b/src/lib/elementary/elm_atspi_app_object.c
@@ -70,4 +70,4 @@ _elm_atspi_app_object_efl_access_object_role_get(const Eo 
*obj EINA_UNUSED, Elm_
    return EFL_ACCESS_ROLE_APPLICATION;
 }
 
-#include "elm_atspi_app_object.eo.c"
+#include "elm_atspi_app_object_eo.c"
diff --git a/src/lib/elementary/elm_atspi_app_object.eo 
b/src/lib/elementary/elm_atspi_app_object.eo
deleted file mode 100644
index e63e233923..0000000000
--- a/src/lib/elementary/elm_atspi_app_object.eo
+++ /dev/null
@@ -1,12 +0,0 @@
-class Elm.Atspi.App.Object extends Efl.Object implements Efl.Access.Object
-{
-   [[AT-SPI application object class]]
-   data: Elm_Atspi_App_Object_Data;
-   implements {
-      Efl.Object.destructor;
-      Efl.Access.Object.i18n_name { get; }
-      Efl.Access.Object.description { get; set; }
-      Efl.Access.Object.role { get; }
-      Efl.Access.Object.access_children { get; }
-   }
-}
diff --git a/src/lib/elementary/elm_atspi_app_object.h 
b/src/lib/elementary/elm_atspi_app_object.h
index f460ffd83e..e67e5524ff 100644
--- a/src/lib/elementary/elm_atspi_app_object.h
+++ b/src/lib/elementary/elm_atspi_app_object.h
@@ -1 +1,3 @@
-#include "elm_atspi_app_object.eo.h"
+#ifndef EFL_NOLEGACY_API_SUPPORT
+#include "elm_atspi_app_object_eo.legacy.h"
+#endif
diff --git a/src/lib/elementary/elm_atspi_app_object_eo.c 
b/src/lib/elementary/elm_atspi_app_object_eo.c
new file mode 100644
index 0000000000..2158c09038
--- /dev/null
+++ b/src/lib/elementary/elm_atspi_app_object_eo.c
@@ -0,0 +1,55 @@
+
+void _elm_atspi_app_object_efl_object_destructor(Eo *obj, 
Elm_Atspi_App_Object_Data *pd);
+
+
+const char *_elm_atspi_app_object_efl_access_object_i18n_name_get(const Eo 
*obj, Elm_Atspi_App_Object_Data *pd);
+
+
+void _elm_atspi_app_object_efl_access_object_description_set(Eo *obj, 
Elm_Atspi_App_Object_Data *pd, const char *description);
+
+
+const char *_elm_atspi_app_object_efl_access_object_description_get(const Eo 
*obj, Elm_Atspi_App_Object_Data *pd);
+
+
+Efl_Access_Role _elm_atspi_app_object_efl_access_object_role_get(const Eo 
*obj, Elm_Atspi_App_Object_Data *pd);
+
+
+Eina_List *_elm_atspi_app_object_efl_access_object_access_children_get(const 
Eo *obj, Elm_Atspi_App_Object_Data *pd);
+
+
+static Eina_Bool
+_elm_atspi_app_object_class_initializer(Efl_Class *klass)
+{
+   const Efl_Object_Ops *opsp = NULL;
+
+   const Efl_Object_Property_Reflection_Ops *ropsp = NULL;
+
+#ifndef ELM_ATSPI_APP_OBJECT_EXTRA_OPS
+#define ELM_ATSPI_APP_OBJECT_EXTRA_OPS
+#endif
+
+   EFL_OPS_DEFINE(ops,
+      EFL_OBJECT_OP_FUNC(efl_destructor, 
_elm_atspi_app_object_efl_object_destructor),
+      EFL_OBJECT_OP_FUNC(efl_access_object_i18n_name_get, 
_elm_atspi_app_object_efl_access_object_i18n_name_get),
+      EFL_OBJECT_OP_FUNC(efl_access_object_description_set, 
_elm_atspi_app_object_efl_access_object_description_set),
+      EFL_OBJECT_OP_FUNC(efl_access_object_description_get, 
_elm_atspi_app_object_efl_access_object_description_get),
+      EFL_OBJECT_OP_FUNC(efl_access_object_role_get, 
_elm_atspi_app_object_efl_access_object_role_get),
+      EFL_OBJECT_OP_FUNC(efl_access_object_access_children_get, 
_elm_atspi_app_object_efl_access_object_access_children_get),
+      ELM_ATSPI_APP_OBJECT_EXTRA_OPS
+   );
+   opsp = &ops;
+
+   return efl_class_functions_set(klass, opsp, ropsp);
+}
+
+static const Efl_Class_Description _elm_atspi_app_object_class_desc = {
+   EO_VERSION,
+   "Elm.Atspi.App.Object",
+   EFL_CLASS_TYPE_REGULAR,
+   sizeof(Elm_Atspi_App_Object_Data),
+   _elm_atspi_app_object_class_initializer,
+   NULL,
+   NULL
+};
+
+EFL_DEFINE_CLASS(elm_atspi_app_object_class_get, 
&_elm_atspi_app_object_class_desc, EFL_OBJECT_CLASS, EFL_ACCESS_OBJECT_MIXIN, 
NULL);
diff --git a/src/lib/elementary/elm_atspi_app_object_eo.h 
b/src/lib/elementary/elm_atspi_app_object_eo.h
new file mode 100644
index 0000000000..0dff0ba000
--- /dev/null
+++ b/src/lib/elementary/elm_atspi_app_object_eo.h
@@ -0,0 +1,24 @@
+#ifndef _ELM_ATSPI_APP_OBJECT_EO_H_
+#define _ELM_ATSPI_APP_OBJECT_EO_H_
+
+#ifndef _ELM_ATSPI_APP_OBJECT_EO_CLASS_TYPE
+#define _ELM_ATSPI_APP_OBJECT_EO_CLASS_TYPE
+
+typedef Eo Elm_Atspi_App_Object;
+
+#endif
+
+#ifndef _ELM_ATSPI_APP_OBJECT_EO_TYPES
+#define _ELM_ATSPI_APP_OBJECT_EO_TYPES
+
+
+#endif
+/** AT-SPI application object class
+ *
+ * @ingroup Elm_Atspi_App_Object
+ */
+#define ELM_ATSPI_APP_OBJECT_CLASS elm_atspi_app_object_class_get()
+
+EWAPI const Efl_Class *elm_atspi_app_object_class_get(void);
+
+#endif
diff --git a/src/lib/elementary/elm_atspi_app_object_eo.legacy.h 
b/src/lib/elementary/elm_atspi_app_object_eo.legacy.h
new file mode 100644
index 0000000000..993c31100f
--- /dev/null
+++ b/src/lib/elementary/elm_atspi_app_object_eo.legacy.h
@@ -0,0 +1,17 @@
+#ifndef _ELM_ATSPI_APP_OBJECT_EO_LEGACY_H_
+#define _ELM_ATSPI_APP_OBJECT_EO_LEGACY_H_
+
+#ifndef _ELM_ATSPI_APP_OBJECT_EO_CLASS_TYPE
+#define _ELM_ATSPI_APP_OBJECT_EO_CLASS_TYPE
+
+typedef Eo Elm_Atspi_App_Object;
+
+#endif
+
+#ifndef _ELM_ATSPI_APP_OBJECT_EO_TYPES
+#define _ELM_ATSPI_APP_OBJECT_EO_TYPES
+
+
+#endif
+
+#endif
diff --git a/src/lib/elementary/elm_priv.h b/src/lib/elementary/elm_priv.h
index cf9b553c12..b92c176de8 100644
--- a/src/lib/elementary/elm_priv.h
+++ b/src/lib/elementary/elm_priv.h
@@ -67,6 +67,7 @@
 # include "elm_code_private.h"
 #include "elm_access_eo.h"
 #include "elm_actionslider_eo.h"
+#include "elm_atspi_app_object_eo.h"
 #include "elm_box_eo.h"
 #include "elm_bubble_eo.h"
 #include "elm_calendar_eo.h"
diff --git a/src/lib/elementary/meson.build b/src/lib/elementary/meson.build
index 4f3b3b7d4b..44b3e17b04 100644
--- a/src/lib/elementary/meson.build
+++ b/src/lib/elementary/meson.build
@@ -172,7 +172,6 @@ pub_eo_files = [
   'elm_multibuttonentry_part.eo',
   'elm_interface_scrollable.eo',
   'elm_atspi_bridge.eo',
-  'elm_atspi_app_object.eo',
   'efl_ui_image_zoomable_pan.eo',
   'efl_ui_text_part.eo',
   'efl_ui_caching_factory.eo',
@@ -413,6 +412,7 @@ elementary_pub_headers = [
   'elm_actionslider_legacy.h',
   'elm_app.h',
   'elm_atspi_app_object.h',
+  'elm_atspi_app_object_eo.legacy.h',
   'elm_authors.h',
   'elm_bg.h',
   'elm_bg_legacy.h',

-- 


Reply via email to