eo: move definitions of priority from Eo.h to the object
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Fri, 4 Jan 2019 14:29:56 +0000 (15:29 +0100)
committerJaehyun Cho <jae_hyun.cho@samsung.com>
Tue, 8 Jan 2019 04:50:42 +0000 (13:50 +0900)
So it can be references from the later coming definition of
callback_forwarder

ref D7532

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

src/lib/eo/Eo.h
src/lib/eo/efl_object.eo

index eac6bfe..6221044 100644 (file)
@@ -223,15 +223,6 @@ typedef void (*Efl_Del_Intercept) (Eo *obj_id);
 typedef void (*Efl_Event_Cb)(void *data, const Efl_Event *event);
 
 /**
- * @brief Callback priority value. Range is -32k - 32k. The lower the number,
- * the higher the priority.
- *
- * See @ref EFL_CALLBACK_PRIORITY_AFTER, @ref EFL_CALLBACK_PRIORITY_BEFORE @ref
- * EFL_CALLBACK_PRIORITY_DEFAULT
- */
-typedef short Efl_Callback_Priority;
-
-/**
  * @struct _Efl_Callback_Array_Item
  * @brief An item in an array of callback desc/func.
  *
@@ -1987,22 +1978,6 @@ typedef void (*efl_key_data_free_func)(void *);
 EAPI const Efl_Event_Description *efl_object_legacy_only_event_description_get(const char *_event_name);
 
 /**
- * @def EFL_CALLBACK_PRIORITY_BEFORE
- * Slightly more prioritized than default.
- */
-#define EFL_CALLBACK_PRIORITY_BEFORE -100
-/**
- * @def EFL_CALLBACK_PRIORITY_DEFAULT
- * Default callback priority level
- */
-#define EFL_CALLBACK_PRIORITY_DEFAULT 0
-/**
- * @def EFL_CALLBACK_PRIORITY_AFTER
- * Slightly less prioritized than default.
- */
-#define EFL_CALLBACK_PRIORITY_AFTER 100
-
-/**
  * Helper for sorting callbacks array. Automatically used by
  * @ref EFL_CALLBACKS_ARRAY_DEFINE
  */
index 4bc643d..49a836c 100644 (file)
@@ -8,6 +8,21 @@ struct Efl.Event_Description {
     restart: bool; [[$true if when the event is triggered again from a callback it'll start from where it was]]
 }
 
+
+type Efl.Callback_Priority : short;
+[[
+  Callback priority. Range is -32k - 32k. The lower the number, the higher the priority.
+
+  See @Efl.Callback_Priority_Before @Efl.Callback_Priority_Default  @Efl.Callback_Priority_After
+ ]]
+
+const Efl.Callback_Priority_Before : Efl.Callback_Priority = -100;
+[[Slightly more prioritized than default.]]
+const Efl.Callback_Priority_Default : Efl.Callback_Priority = 0;
+[[Default priority.]]
+const Efl.Callback_Priority_After : Efl.Callback_Priority = 100;
+[[Slightly less prioritized than default.]]
+
 abstract Efl.Object
 {
    [[Abstract Efl object class]]