summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2015-05-01 15:59:57 +0100
committerTom Hacohen <tom@stosb.com>2015-05-06 15:46:19 +0100
commit3dae6d9209637cf0f28d7a416c1ef6cbca787ced (patch)
treeda0d1a2a9fc1f1c49d728801716fd962fb92a8a4 /src
parent47b63d0a1bb1ccce7e7283f5513886a656ee4ed7 (diff)
Eo base: Reorder the eolian file to be in a sensible order.
Diffstat (limited to 'src')
-rw-r--r--src/lib/eo/eo_base.eo112
1 files changed, 56 insertions, 56 deletions
diff --git a/src/lib/eo/eo_base.eo b/src/lib/eo/eo_base.eo
index 88b917aa9d..47bdc1389a 100644
--- a/src/lib/eo/eo_base.eo
+++ b/src/lib/eo/eo_base.eo
@@ -48,30 +48,19 @@ Return event freeze count. */
48 /*@ Call the object's constructor. 48 /*@ Call the object's constructor.
49Should not be used with #eo_do. Only use it with #eo_do_super. */ 49Should not be used with #eo_do. Only use it with #eo_do_super. */
50 } 50 }
51 event_callback_forwarder_del { 51 destructor {
52 /*@ Remove an event callback forwarder for an event and an object. */ 52 /*@ Call the object's destructor.
53 params { 53Should not be used with #eo_do. Only use it with #eo_do_super. */
54 @in const(Eo_Event_Description)* desc; /*@ The description of the event to listen to */
55 @in Eo* new_obj; /*@ The object to emit events from */
56 }
57 }
58 event_thaw {
59 /*@ thaw events of object.
60Lets event callbacks be called for the object. */
61 }
62 event_freeze {
63 /*@ freeze events of object.
64Prevents event callbacks from being called for the object. */
65 } 54 }
66 event_global_freeze @class { 55 finalize {
67 /*@ freeze events of object. 56 /*@ Called at the end of #eo_add. Should not be called, just overridden. */
68Prevents event callbacks from being called for the object. */ 57 return: Eo *; /*@ The new object created, can be NULL if the finalize func decided to abort (though it should free the created object on it's own). */
69 } 58 }
70 event_callback_array_del { 59 wref_add {
71 /*@ Del a callback array with a specific data associated to it for an event. */ 60 /*@ Add a new weak reference to obj.
61This function registers the object handle pointed by wref to obj so when obj is deleted it'll be updated to NULL. This functions should be used when you want to keep track of an object in a safe way, but you don't want to prevent it from being freed. */
72 params { 62 params {
73 @in const(Eo_Callback_Array_Item)* array; /*@ an #Eo_Callback_Array_Item of events to listen to */ 63 @out Eo* wref;
74 @in const(void)* user_data; /*@ The data to compare */
75 } 64 }
76 } 65 }
77 wref_del { 66 wref_del {
@@ -80,14 +69,6 @@ Prevents event callbacks from being called for the object. */
80 @in Eo** wref; 69 @in Eo** wref;
81 } 70 }
82 } 71 }
83 destructor {
84 /*@ Call the object's destructor.
85Should not be used with #eo_do. Only use it with #eo_do_super. */
86 }
87 finalize {
88 /*@ Called at the end of #eo_add. Should not be called, just overridden. */
89 return: Eo *; /*@ The new object created, can be NULL if the finalize func decided to abort (though it should free the created object on it's own). */
90 }
91 key_data_set { 72 key_data_set {
92 /*@ Set generic data to object. */ 73 /*@ Set generic data to object. */
93 params { 74 params {
@@ -103,22 +84,44 @@ Should not be used with #eo_do. Only use it with #eo_do_super. */
103 } 84 }
104 return: void *; /* the data for the key */ 85 return: void *; /* the data for the key */
105 } 86 }
106 event_callback_del { 87 key_data_del {
107 /*@ Del a callback with a specific data associated to it for an event. */ 88 /*@ Del generic data from object. */
108 params { 89 params {
109 @in const(Eo_Event_Description)* desc; /*@ The description of the event to listen to */ 90 @in const(char)* key; /*@ the key associated with the data */
110 @in Eo_Event_Cb func; /*@ the callback to delete */
111 @in const(void)* user_data; /*@ The data to compare */
112 } 91 }
113 } 92 }
93 event_thaw {
94 /*@ thaw events of object.
95Lets event callbacks be called for the object. */
96 }
97 event_freeze {
98 /*@ freeze events of object.
99Prevents event callbacks from being called for the object. */
100 }
114 event_global_thaw @class { 101 event_global_thaw @class {
115 /*@ thaw events of object. 102 /*@ thaw events of object.
116Lets event callbacks be called for the object. */ 103Lets event callbacks be called for the object. */
117 } 104 }
118 key_data_del { 105 event_global_freeze @class {
119 /*@ Del generic data from object. */ 106 /*@ freeze events of object.
107Prevents event callbacks from being called for the object. */
108 }
109 event_callback_priority_add {
110 /*@ Add a callback for an event with a specific priority.
111callbacks of the same priority are called in reverse order of creation. */
120 params { 112 params {
121 @in const(char)* key; /*@ the key associated with the data */ 113 @in const(Eo_Event_Description)* desc; /*@ The description of the event to listen to */
114 @in Eo_Callback_Priority priority; /*@ The priority of the callback */
115 @in Eo_Event_Cb cb; /*@ the callback to call */
116 @in const(void)* data; /*@ additional data to pass to the callback */
117 }
118 }
119 event_callback_del {
120 /*@ Del a callback with a specific data associated to it for an event. */
121 params {
122 @in const(Eo_Event_Description)* desc; /*@ The description of the event to listen to */
123 @in Eo_Event_Cb func; /*@ the callback to delete */
124 @in const(void)* user_data; /*@ The data to compare */
122 } 125 }
123 } 126 }
124 event_callback_array_priority_add { 127 event_callback_array_priority_add {
@@ -130,18 +133,20 @@ callbacks of the same priority are called in reverse order of creation. */
130 @in const(void)* data; /*@ additional data to pass to the callback */ 133 @in const(void)* data; /*@ additional data to pass to the callback */
131 } 134 }
132 } 135 }
133 wref_add { 136 event_callback_array_del {
134 /*@ Add a new weak reference to obj. 137 /*@ Del a callback array with a specific data associated to it for an event. */
135This function registers the object handle pointed by wref to obj so when obj is deleted it'll be updated to NULL. This functions should be used when you want to keep track of an object in a safe way, but you don't want to prevent it from being freed. */
136 params { 138 params {
137 @out Eo* wref; 139 @in const(Eo_Callback_Array_Item)* array; /*@ an #Eo_Callback_Array_Item of events to listen to */
140 @in const(void)* user_data; /*@ The data to compare */
138 } 141 }
139 } 142 }
140 dbg_info_get { 143 event_callback_call {
141 /*@ Get dbg information from the object. */ 144 /*@ Call the callbacks for an event of an object. */
142 params { 145 params {
143 @in Eo_Dbg_Info* root_node; /*@ node of the tree */ 146 @in const(Eo_Event_Description)* desc; /*@ The description of the event to call */
147 @in void *event_info; /*@ Extra event info to pass to the callbacks */
144 } 148 }
149 return: bool; /* @c EINA_TRUE if one of the callbacks aborted the call, @c EINA_FALSE otherwise */
145 } 150 }
146 event_callback_forwarder_add { 151 event_callback_forwarder_add {
147 /*@ Add an event callback forwarder for an event and an object. */ 152 /*@ Add an event callback forwarder for an event and an object. */
@@ -150,22 +155,17 @@ This function registers the object handle pointed by wref to obj so when obj is
150 @in Eo* new_obj; /*@ The object to emit events from */ 155 @in Eo* new_obj; /*@ The object to emit events from */
151 } 156 }
152 } 157 }
153 event_callback_call { 158 event_callback_forwarder_del {
154 /*@ Call the callbacks for an event of an object. */ 159 /*@ Remove an event callback forwarder for an event and an object. */
155 params { 160 params {
156 @in const(Eo_Event_Description)* desc; /*@ The description of the event to call */ 161 @in const(Eo_Event_Description)* desc; /*@ The description of the event to listen to */
157 @in void *event_info; /*@ Extra event info to pass to the callbacks */ 162 @in Eo* new_obj; /*@ The object to emit events from */
158 } 163 }
159 return: bool; /* @c EINA_TRUE if one of the callbacks aborted the call, @c EINA_FALSE otherwise */
160 } 164 }
161 event_callback_priority_add { 165 dbg_info_get {
162 /*@ Add a callback for an event with a specific priority. 166 /*@ Get dbg information from the object. */
163callbacks of the same priority are called in reverse order of creation. */
164 params { 167 params {
165 @in const(Eo_Event_Description)* desc; /*@ The description of the event to listen to */ 168 @in Eo_Dbg_Info* root_node; /*@ node of the tree */
166 @in Eo_Callback_Priority priority; /*@ The priority of the callback */
167 @in Eo_Event_Cb cb; /*@ the callback to call */
168 @in const(void)* data; /*@ additional data to pass to the callback */
169 } 169 }
170 } 170 }
171 children_iterator_new { 171 children_iterator_new {