edje: Remove Message_Type from EO
authorJean-Philippe Andre <jp.andre@samsung.com>
Thu, 25 May 2017 10:22:46 +0000 (19:22 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Mon, 29 May 2017 01:49:16 +0000 (10:49 +0900)
See the previous commits, Eina_Value is used directly, no need to
specify the type.

src/lib/edje/Edje_Legacy.h
src/lib/edje/edje_types.eot

index b0df94e..0512f18 100644 (file)
@@ -97,6 +97,55 @@ EAPI void        *edje_object_signal_callback_del (Evas_Object *obj, const char
  */
 EAPI void        *edje_object_signal_callback_del_full(Evas_Object *obj, const char *emission, const char *source, Edje_Signal_Cb func, void *data);
 
+
+/** Identifiers of Edje message types, which can be sent back and forth code
+ * and a given Edje object's theme file/group.
+ *
+ * @ref edje_object_message_send
+ * @ref edje_object_message_handler_set
+ */
+typedef enum
+{
+  EDJE_MESSAGE_NONE = 0, /**< No message type */
+  EDJE_MESSAGE_SIGNAL = 1, /**< DO NOT USE THIS */
+  EDJE_MESSAGE_STRING = 2, /**< A message with a string as value. Use
+                            * #Edje_Message_String structs as message body, for
+                            * this type. */
+  EDJE_MESSAGE_INT = 3, /**< A message with an integer number as value. Use
+                         * #Edje_Message_Int structs as message body, for this
+                         * type. */
+  EDJE_MESSAGE_FLOAT = 4, /**< A message with a floating pointer number as
+                           * value. Use #Edje_Message_Float structs as message
+                           * body, for this type. */
+  EDJE_MESSAGE_STRING_SET = 5, /**< A message with a list of strings as value.
+                                * Use #Edje_Message_String_Set structs as
+                                * message body, for this type. */
+  EDJE_MESSAGE_INT_SET = 6, /**< A message with a list of integer numbers as
+                             * value. Use #Edje_Message_Int_Set structs as
+                             * message body, for this type. */
+  EDJE_MESSAGE_FLOAT_SET = 7, /**< A message with a list of floating point
+                               * numbers as value. Use #Edje_Message_Float_Set
+                               * structs as message body, for this type. */
+  EDJE_MESSAGE_STRING_INT = 8, /**< A message with a struct containing a string
+                                * and an integer number as value. Use
+                                * #Edje_Message_String_Int structs as message
+                                * body, for this type. */
+  EDJE_MESSAGE_STRING_FLOAT = 9, /**< A message with a struct containing a
+                                  * string and a floating point number as
+                                  * value. Use #Edje_Message_String_Float
+                                  * structs as message body, for this type. */
+  EDJE_MESSAGE_STRING_INT_SET = 10, /**< A message with a struct containing a
+                                     * string and list of integer numbers as
+                                     * value. Use #Edje_Message_String_Int_Set
+                                     * structs as message body, for this type.
+                                     */
+  EDJE_MESSAGE_STRING_FLOAT_SET = 11 /**< A message with a struct containing a
+                                      * string and list of floating point
+                                      * numbers as value. Use
+                                      * #Edje_Message_String_Float_Set structs
+                                      * as message body, for this type. */
+} Edje_Message_Type;
+
 /**
  * @brief Sets an Edje message handler function for a given Edje object.
  *
index 36dec6f..2237b40 100644 (file)
@@ -152,31 +152,6 @@ struct Edje.External.Param {
    s: string; [[Used by both string and choice]]
 }
 
-enum Edje.Message_Type {
-   [[Identifiers of Edje message types, which can be sent back and forth code and a given Edje object's theme file/group.
-     \@ref edje_object_message_send, \@ref edje_object_message_handler_set.
-   ]]
-   legacy: Edje_Message;
-
-   none = 0, [[No message type]]
-
-   signal = 1, [[DO NOT USE THIS]]
-
-   string = 2, [[A message with a string as value. Use #Edje_Message_String structs as message body, for this type.]]
-   int = 3, [[A message with an integer number as value. Use #Edje_Message_Int structs as message body, for this type.]]
-   float = 4, [[A message with a floating pointer number as value. Use #Edje_Message_Float structs as message body, for this type.]]
-
-   string_set = 5, [[A message with a list of strings as value. Use #Edje_Message_String_Set structs as message body, for this type.]]
-   int_set = 6, [[A message with a list of integer numbers as value. Use #Edje_Message_Int_Set structs as message body, for this type.]]
-   float_set = 7, [[A message with a list of floating point numbers as value. Use #Edje_Message_Float_Set structs as message body, for this type.]]
-
-   string_int = 8, [[A message with a struct containing a string and an integer number as value. Use #Edje_Message_String_Int structs as message body, for this type.]]
-   string_float = 9, [[A message with a struct containing a string and a floating point number as value. Use #Edje_Message_String_Float structs as message body, for this type.]]
-
-   string_int_set = 10, [[A message with a struct containing a string and list of integer numbers as value. Use #Edje_Message_String_Int_Set structs as message body, for this type.]]
-   string_float_set = 11 [[A message with a struct containing a string and list of floating point numbers as value. Use #Edje_Message_String_Float_Set structs as message body, for this type.]]
-}
-
 
 struct Edje.Perspective; [[Perspective info for maps inside edje objects]]