summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2019-07-26 13:02:21 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2019-07-26 13:02:28 +0200
commitf230dc9dbc08b52a26a8d547cc107fb1818ba5d1 (patch)
tree369cbaaf8ba9f26cf4bafac8185aaae168acbc17 /src/tests
parentd19e435ff9a4716e890d2653af6a1231d8961e37 (diff)
eolian-cxx: Add binbuf and event keywords handling
n Summary: Add support in Eolian-Cxx for binbuf and event keywords and tests. It will generate the C type while the manual binding in C++ for the types do not exist. Reviewers: q66, lauromoura Reviewed By: q66 Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9412
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/eolian_cxx/generic.c15
-rw-r--r--src/tests/eolian_cxx/generic.eo20
2 files changed, 35 insertions, 0 deletions
diff --git a/src/tests/eolian_cxx/generic.c b/src/tests/eolian_cxx/generic.c
index ebc33aca25..0bbf894457 100644
--- a/src/tests/eolian_cxx/generic.c
+++ b/src/tests/eolian_cxx/generic.c
@@ -138,5 +138,20 @@ static void _generic_protected_beta_method1(Eo *obj EINA_UNUSED, Generic_Data* p
138static void _generic_beta_method1(Eo *obj EINA_UNUSED, Generic_Data* pd EINA_UNUSED) 138static void _generic_beta_method1(Eo *obj EINA_UNUSED, Generic_Data* pd EINA_UNUSED)
139{ 139{
140} 140}
141void _generic_event_param(Eo *obj EINA_UNUSED, Generic_Data *pd EINA_UNUSED, Efl_Event *value EINA_UNUSED)
142{
143}
144void _generic_const_event_param(Eo *obj EINA_UNUSED, Generic_Data *pd EINA_UNUSED, const Efl_Event *value EINA_UNUSED)
145{
146}
147void _generic_binbuf_param(Eo *obj EINA_UNUSED, Generic_Data *pd EINA_UNUSED, Eina_Binbuf *value EINA_UNUSED)
148{
149}
150void _generic_const_binbuf_param(Eo *obj EINA_UNUSED, Generic_Data *pd EINA_UNUSED, const Eina_Binbuf *value EINA_UNUSED)
151{
152}
153
154
155
141#include "generic.eo.c" 156#include "generic.eo.c"
142#include "generic_interface.eo.c" 157#include "generic_interface.eo.c"
diff --git a/src/tests/eolian_cxx/generic.eo b/src/tests/eolian_cxx/generic.eo
index 5bc284fc4a..cf7aa3b31e 100644
--- a/src/tests/eolian_cxx/generic.eo
+++ b/src/tests/eolian_cxx/generic.eo
@@ -94,6 +94,26 @@ class Generic extends Efl.Object implements Generic_Interface
94 } 94 }
95 protected_beta_method1 @protected @beta { 95 protected_beta_method1 @protected @beta {
96 } 96 }
97 event_param {
98 params {
99 value: event;
100 }
101 }
102 const_event_param {
103 params {
104 value: const(event);
105 }
106 }
107 binbuf_param {
108 params {
109 value: binbuf;
110 }
111 }
112 const_binbuf_param {
113 params {
114 value: const(binbuf);
115 }
116 }
97 } 117 }
98 constructors { 118 constructors {
99 .required_ctor_a; 119 .required_ctor_a;