eo: move Efl_Event definition back to C

It's not used anywhere in eo files and has a void pointer.
This commit is contained in:
Daniel Kolesa 2017-04-20 16:14:18 +02:00
parent 295940c0bc
commit da982535f6
2 changed files with 12 additions and 8 deletions

View File

@ -216,11 +216,23 @@ typedef void (*Efl_Del_Intercept) (Eo *obj_id);
*/
typedef Eo Efl_Future;
/**
* @typedef Efl_Event
* A parameter passed in event callbacks holding extra event parameters.
*/
typedef struct _Efl_Event Efl_Event;
#include "efl_object_override.eo.h"
#include "efl_object.eo.h"
#include "efl_interface.eo.h"
#define EO_CLASS EFL_OBJECT_CLASS
struct _Efl_Event {
Efl_Object *object; /**< The object the event was called on. */
const Efl_Event_Description *desc; /**< The event description. */
void *info; /**< Extra event information passed by the event caller. */
};
/**
* @addtogroup Eo_Debug_Information Eo's Debug information helper.
* @{

View File

@ -8,16 +8,8 @@ struct Efl.Event.Description {
restart: bool; [[$true if when the event is triggered again from a callback, it should start from where it was]]
}
struct Efl.Event {
[[Parameter passed in event callbacks holding extra event parameters]]
object: Efl.Object; [[The object the event was called on.]]
desc: ptr(const(Efl.Event.Description)); [[The event description.]]
info: void_ptr; [[Extra event information passed by the event caller.]]
}
type Efl.Event_Cb: __builtin_event_cb; [[An event callback prototype.]]
struct Efl.Callback_Array_Item {
[[An item in an array of callback desc/func.