summaryrefslogtreecommitdiff
path: root/src/tests/eo/suite/eo_test_class_simple.c
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-04-11 00:53:03 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-04-11 01:28:50 -0300
commit62841aee3ce838321149b329008a54185341f9f8 (patch)
tree62abd7842778d1fd0c541ba1063d732097dc57f2 /src/tests/eo/suite/eo_test_class_simple.c
parenteff86cd48a9f01ace61aadcfcb8241ec426d6262 (diff)
eolian: Make promise eolian generation use macros for hooks
Modify the way hooks are defined and used by promise generation in Eolian in the Eo API. Instead of passing macro names as parameters to EO_FUNC_BODY macros, just re-define the actual hooks when it is needed.
Diffstat (limited to 'src/tests/eo/suite/eo_test_class_simple.c')
-rw-r--r--src/tests/eo/suite/eo_test_class_simple.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/tests/eo/suite/eo_test_class_simple.c b/src/tests/eo/suite/eo_test_class_simple.c
index fbe6f05020..8566ed9929 100644
--- a/src/tests/eo/suite/eo_test_class_simple.c
+++ b/src/tests/eo/suite/eo_test_class_simple.c
@@ -48,7 +48,7 @@ _class_hi_print(Eo_Class *klass, void *data EINA_UNUSED)
48 return EINA_TRUE; 48 return EINA_TRUE;
49} 49}
50 50
51EO_FUNC_BODYV(simple_part_get, _EO_EMPTY_HOOK, _EO_EMPTY_HOOK, Eo *, NULL, EO_FUNC_CALL(name), const char *name); 51EO_FUNC_BODYV(simple_part_get, Eo *, NULL, EO_FUNC_CALL(name), const char *name);
52 52
53static Eo * 53static Eo *
54_part_get(Eo *obj, void *class_data EINA_UNUSED, const char *name EINA_UNUSED) 54_part_get(Eo *obj, void *class_data EINA_UNUSED, const char *name EINA_UNUSED)
@@ -57,7 +57,7 @@ _part_get(Eo *obj, void *class_data EINA_UNUSED, const char *name EINA_UNUSED)
57 return eo_add(SIMPLE_CLASS, obj); 57 return eo_add(SIMPLE_CLASS, obj);
58} 58}
59 59
60EO_VOID_FUNC_BODYV(simple_recursive, _EO_EMPTY_HOOK, _EO_EMPTY_HOOK, EO_FUNC_CALL(n), int n); 60EO_VOID_FUNC_BODYV(simple_recursive, EO_FUNC_CALL(n), int n);
61 61
62static void 62static void
63_recursive(Eo *obj, void *class_data EINA_UNUSED, int n) 63_recursive(Eo *obj, void *class_data EINA_UNUSED, int n)
@@ -81,12 +81,12 @@ _dbg_info_get(Eo *eo_obj, void *_pd EINA_UNUSED, Eo_Dbg_Info *root)
81 EO_DBG_INFO_APPEND(group, "Test", EINA_VALUE_TYPE_INT, 8); 81 EO_DBG_INFO_APPEND(group, "Test", EINA_VALUE_TYPE_INT, 8);
82} 82}
83 83
84EO_VOID_FUNC_BODYV(simple_a_set, _EO_EMPTY_HOOK, _EO_EMPTY_HOOK, EO_FUNC_CALL(a), int a); 84EO_VOID_FUNC_BODYV(simple_a_set, EO_FUNC_CALL(a), int a);
85EO_FUNC_BODY(simple_a_get, _EO_EMPTY_HOOK, _EO_EMPTY_HOOK, int, 0); 85EO_FUNC_BODY(simple_a_get, int, 0);
86EO_FUNC_BODY(simple_a_print, _EO_EMPTY_HOOK, _EO_EMPTY_HOOK, Eina_Bool, EINA_FALSE); 86EO_FUNC_BODY(simple_a_print, Eina_Bool, EINA_FALSE);
87EO_FUNC_BODY_CONST(simple_class_hi_print, _EO_EMPTY_HOOK, _EO_EMPTY_HOOK, Eina_Bool, EINA_FALSE); 87EO_FUNC_BODY_CONST(simple_class_hi_print, Eina_Bool, EINA_FALSE);
88EO_VOID_FUNC_BODY(simple_pure_virtual, _EO_EMPTY_HOOK, _EO_EMPTY_HOOK); 88EO_VOID_FUNC_BODY(simple_pure_virtual);
89EO_VOID_FUNC_BODY(simple_no_implementation, _EO_EMPTY_HOOK, _EO_EMPTY_HOOK); 89EO_VOID_FUNC_BODY(simple_no_implementation);
90 90
91static Eo_Op_Description op_descs[] = { 91static Eo_Op_Description op_descs[] = {
92 EO_OP_FUNC(simple_a_set, _a_set), 92 EO_OP_FUNC(simple_a_set, _a_set),
@@ -119,7 +119,7 @@ _beef_get(Eo *obj EINA_UNUSED, void *class_data EINA_UNUSED)
119 return 0xBEEF; 119 return 0xBEEF;
120} 120}
121 121
122EO_FUNC_BODY_CONST(simple2_class_beef_get, _EO_EMPTY_HOOK, _EO_EMPTY_HOOK, int, 0); 122EO_FUNC_BODY_CONST(simple2_class_beef_get, int, 0);
123 123
124static Eo_Op_Description op_descs2[] = { 124static Eo_Op_Description op_descs2[] = {
125 EO_OP_CLASS_FUNC(simple2_class_beef_get, _beef_get), 125 EO_OP_CLASS_FUNC(simple2_class_beef_get, _beef_get),