efl_layout_group: remove all legacy usage from eo files
authorMike Blumenkrantz <zmike@samsung.com>
Tue, 5 Mar 2019 22:00:37 +0000 (17:00 -0500)
committerJunsuChoi <jsuya.choi@samsung.com>
Thu, 14 Mar 2019 05:46:26 +0000 (14:46 +0900)
this takes the current generated output from eolian for legacy code in
evas 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

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D8128

src/Makefile_Edje.am
src/lib/edje/Edje_Legacy.h
src/lib/edje/edje_smart.c
src/lib/edje/efl_layout_group.eo
src/lib/edje/efl_layout_group_eo.legacy.c [new file with mode: 0644]
src/lib/edje/efl_layout_group_eo.legacy.h [new file with mode: 0644]
src/lib/edje/meson.build

index fecd37b..e200e39 100644 (file)
@@ -66,7 +66,11 @@ lib/edje/Edje.h \
 lib/edje/Edje_Common.h \
 lib/edje/Edje_Eo.h \
 lib/edje/Edje_Legacy.h \
-lib/edje/Edje_Edit.h
+lib/edje/Edje_Edit.h \
+lib/edje/efl_layout_group_eo.legacy.h
+
+EXTRA_DIST2 += \
+lib/edje/efl_layout_group_eo.legacy.c
 
 nodist_installed_edjemainheaders_DATA = \
                                         $(edje_eolian_h) \
index cabb420..55db1fd 100644 (file)
@@ -3226,4 +3226,4 @@ typedef Efl_Canvas_Layout_Part_Type Edje_Part_Type;
  */
 #include "efl_canvas_layout.eo.legacy.h"
 #include "edje_edit.eo.legacy.h"
-#include "efl_layout_group.eo.legacy.h"
+#include "efl_layout_group_eo.legacy.h"
index 3894ae2..9e2e4a7 100644 (file)
@@ -643,3 +643,4 @@ _efl_canvas_layout_efl_player_play_speed_get(const Eo *obj EINA_UNUSED, Edje *pd
 #include "efl_layout_calc.eo.c"
 #include "efl_layout_signal.eo.c"
 #include "efl_layout_group.eo.c"
+#include "efl_layout_group_eo.legacy.c"
index 5d4d56a..2f9aa95 100644 (file)
@@ -89,7 +89,6 @@ interface @beta Efl.Layout.Group
               Warning: Do not confuse this call with edje_file_data_get(), which
               queries for a global EDC data field on an EDC declaration file.
             ]]
-            legacy: edje_object_data_get;
          }
          keys {
             key: string; [[The data field's key string]]
diff --git a/src/lib/edje/efl_layout_group_eo.legacy.c b/src/lib/edje/efl_layout_group_eo.legacy.c
new file mode 100644 (file)
index 0000000..c68fa2f
--- /dev/null
@@ -0,0 +1,6 @@
+
+EAPI const char *
+edje_object_data_get(const Efl_Layout_Group *obj, const char *key)
+{
+   return efl_layout_group_data_get(obj, key);
+}
diff --git a/src/lib/edje/efl_layout_group_eo.legacy.h b/src/lib/edje/efl_layout_group_eo.legacy.h
new file mode 100644 (file)
index 0000000..2dc80c5
--- /dev/null
@@ -0,0 +1,48 @@
+#ifndef _EFL_LAYOUT_GROUP_EO_LEGACY_H_
+#define _EFL_LAYOUT_GROUP_EO_LEGACY_H_
+
+#ifndef _EFL_LAYOUT_GROUP_EO_CLASS_TYPE
+#define _EFL_LAYOUT_GROUP_EO_CLASS_TYPE
+
+typedef Eo Efl_Layout_Group;
+
+#endif
+
+#ifndef _EFL_LAYOUT_GROUP_EO_TYPES
+#define _EFL_LAYOUT_GROUP_EO_TYPES
+
+
+#endif
+
+
+
+/**
+ * @brief Retrives an EDC data field's value from a given Edje object's group.
+ *
+ * This function fetches an EDC data field's value, which is declared on the
+ * objects building EDC file, under its group. EDC data blocks are most
+ * commonly used to pass arbitrary parameters from an application's theme to
+ * its code.
+ *
+ * EDC data fields always hold  strings as values, hence the return type of
+ * this function. Check the complete "syntax reference" for EDC files.
+ *
+ * This is how a data item is defined in EDC: collections { group { name:
+ * "a_group"; data { item: "key1" "value1"; item: "key2" "value2"; } } }
+ *
+ * @warning Do not confuse this call with edje_file_data_get(), which queries
+ * for a global EDC data field on an EDC declaration file.
+ *
+ * @param[in] obj The object.
+ * @param[in] key The data field's key string
+ *
+ * @return The data's value string.
+ *
+ * @since 1.21
+ *
+ * @ingroup (null)_Group
+ */
+EAPI const char *edje_object_data_get(const Efl_Layout_Group *obj, const char *key);
+
+
+#endif
index 2c3d771..21f0850 100644 (file)
@@ -104,7 +104,8 @@ edje_header_src = [
   'Edje_Common.h',
   'Edje_Eo.h',
   'Edje_Legacy.h',
-  'Edje_Edit.h'
+  'Edje_Edit.h',
+  'efl_layout_group_eo.legacy.h',
 ]
 
 edje_src = [