evas: Make Efl.Input.Event.instance_get internal

Same as the previous patch. This removes the definition from
the EO file, implementing the feature in C.
This commit is contained in:
Jean-Philippe Andre 2017-05-18 17:27:47 +09:00
parent 60444d681e
commit de4627030a
11 changed files with 19 additions and 12 deletions

View File

@ -193,6 +193,7 @@ _efl_input_value_mark(Efl_Input_Pointer_Data *pd, Efl_Input_Value key)
#endif /* ! _WIN32 */
EOAPI void *efl_input_legacy_info_get(const Eo *obj);
EOAPI Eo *efl_input_instance_get(const Eo *obj, Efl_Object *owner, void **priv);
#undef EAPI
#define EAPI

View File

@ -65,10 +65,14 @@ _efl_input_event_efl_object_provider_find(Eo *obj, void *pd EINA_UNUSED, const E
/* Internal EO APIs */
EOAPI EFL_FUNC_BODY_CONST(efl_input_legacy_info_get, void *, NULL)
EOAPI EFL_FUNC_BODYV_CONST(efl_input_instance_get, Efl_Input_Event *, NULL, EFL_FUNC_CALL(owner, priv), Efl_Object *owner, void **priv)
#define EFL_INPUT_EVENT_EXTRA_OPS \
EFL_OBJECT_OP_FUNC(efl_input_legacy_info_get, NULL)
#define EFL_INPUT_EVENT_EXTRA_CLASS_OPS \
EFL_OBJECT_OP_FUNC(efl_input_instance_get, NULL)
#include "efl_input_event.eo.c"
#include "efl_input_state.eo.c"
#include "efl_input_interface.eo.c"

View File

@ -65,14 +65,6 @@ mixin Efl.Input.Event (Efl.Interface, Efl.Object)
val: bool; [[$true if the event was not from real hardware, $false otherwise]]
}
}
instance_get @class @protected @pure_virtual /* @internal */ {
[[Get an instance of this input event]]
params {
@in owner: Efl.Object; [[Owner of this input event]]
@out priv: void_ptr; [[Private data pointer]]
}
return: own(Efl.Input.Event); [[Instance of this input event]]
}
}
implements {
Efl.Object.provider_find;

View File

@ -156,4 +156,9 @@ _efl_input_focus_efl_input_event_reset(Eo *obj, Efl_Input_Focus_Data *pd)
pd->eo = obj;
}
/* Internal EO APIs */
#define EFL_INPUT_FOCUS_EXTRA_CLASS_OPS \
EFL_OBJECT_OP_FUNC(efl_input_instance_get, _efl_input_focus_efl_input_event_instance_get)
#include "efl_input_focus.eo.c"

View File

@ -16,7 +16,6 @@ class Efl.Input.Focus(Efl.Object, Efl.Input.Event)
Efl.Object.constructor;
Efl.Object.destructor;
Efl.Input.Event.device { get; set; }
Efl.Input.Event.instance_get;
Efl.Input.Event.reset;
Efl.Input.Event.dup;
Efl.Input.Event.timestamp { get; set; }

View File

@ -129,4 +129,7 @@ _efl_input_hold_efl_input_event_legacy_info_get(Eo *obj, Efl_Input_Hold_Data *pd
#define EFL_INPUT_HOLD_EXTRA_OPS \
EFL_OBJECT_OP_FUNC(efl_input_legacy_info_get, _efl_input_hold_efl_input_event_legacy_info_get)
#define EFL_INPUT_HOLD_EXTRA_CLASS_OPS \
EFL_OBJECT_OP_FUNC(efl_input_instance_get, _efl_input_hold_efl_input_event_instance_get)
#include "efl_input_hold.eo.c"

View File

@ -12,7 +12,6 @@ class Efl.Input.Hold (Efl.Object, Efl.Input.Event)
implements {
Efl.Object.constructor;
Efl.Object.destructor;
Efl.Input.Event.instance_get;
Efl.Input.Event.reset;
Efl.Input.Event.dup;
Efl.Input.Event.timestamp { get; set; }

View File

@ -291,4 +291,7 @@ _efl_input_key_efl_input_event_legacy_info_get(Eo *obj, Efl_Input_Key_Data *pd)
#define EFL_INPUT_KEY_EXTRA_OPS \
EFL_OBJECT_OP_FUNC(efl_input_legacy_info_get, _efl_input_key_efl_input_event_legacy_info_get)
#define EFL_INPUT_KEY_EXTRA_CLASS_OPS \
EFL_OBJECT_OP_FUNC(efl_input_instance_get, _efl_input_key_efl_input_event_instance_get)
#include "efl_input_key.eo.c"

View File

@ -55,7 +55,6 @@ class Efl.Input.Key (Efl.Object, Efl.Input.Event, Efl.Input.State, Efl.Input.Eve
class.destructor;
Efl.Object.constructor;
Efl.Object.destructor;
Efl.Input.Event.instance_get;
Efl.Input.Event.reset;
Efl.Input.Event.dup;
Efl.Input.Event.timestamp { get; set; }

View File

@ -619,4 +619,7 @@ _efl_input_pointer_efl_input_event_legacy_info_get(Eo *obj, Efl_Input_Pointer_Da
#define EFL_INPUT_POINTER_EXTRA_OPS \
EFL_OBJECT_OP_FUNC(efl_input_legacy_info_get, _efl_input_pointer_efl_input_event_legacy_info_get)
#define EFL_INPUT_POINTER_EXTRA_CLASS_OPS \
EFL_OBJECT_OP_FUNC(efl_input_instance_get, _efl_input_pointer_efl_input_event_instance_get)
#include "efl_input_pointer.eo.c"

View File

@ -164,7 +164,6 @@ class Efl.Input.Pointer (Efl.Object, Efl.Input.Event, Efl.Input.State)
Efl.Object.constructor;
Efl.Object.destructor;
class.destructor;
Efl.Input.Event.instance_get;
Efl.Input.Event.reset;
Efl.Input.Event.dup;
Efl.Input.Event.timestamp { get; set; }