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-03-11 17:22:59 -0300
committerCedric Bail <cedric@osg.samsung.com>2016-04-06 14:32:04 -0700
commit944e11559c34fd342550648c2dd9b3de270d3fa8 (patch)
tree74d4bf2a21c524b486e62b4094cdbbe43aefc640 /src/tests/eo/suite/eo_test_class_simple.c
parentc9347b1ca2c3f75af771ed6654cc7f46d9eaaa00 (diff)
eo: add before and after macro hooks for API generation functions
Add two parameters for macros that generate API functions in Eo so that the generation can be customized with macros used by Eolian. Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
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 8566ed9929..fbe6f05020 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 *, NULL, EO_FUNC_CALL(name), const char *name); 51EO_FUNC_BODYV(simple_part_get, _EO_EMPTY_HOOK, _EO_EMPTY_HOOK, 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_FUNC_CALL(n), int n); 60EO_VOID_FUNC_BODYV(simple_recursive, _EO_EMPTY_HOOK, _EO_EMPTY_HOOK, 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_FUNC_CALL(a), int a); 84EO_VOID_FUNC_BODYV(simple_a_set, _EO_EMPTY_HOOK, _EO_EMPTY_HOOK, EO_FUNC_CALL(a), int a);
85EO_FUNC_BODY(simple_a_get, int, 0); 85EO_FUNC_BODY(simple_a_get, _EO_EMPTY_HOOK, _EO_EMPTY_HOOK, int, 0);
86EO_FUNC_BODY(simple_a_print, Eina_Bool, EINA_FALSE); 86EO_FUNC_BODY(simple_a_print, _EO_EMPTY_HOOK, _EO_EMPTY_HOOK, Eina_Bool, EINA_FALSE);
87EO_FUNC_BODY_CONST(simple_class_hi_print, Eina_Bool, EINA_FALSE); 87EO_FUNC_BODY_CONST(simple_class_hi_print, _EO_EMPTY_HOOK, _EO_EMPTY_HOOK, Eina_Bool, EINA_FALSE);
88EO_VOID_FUNC_BODY(simple_pure_virtual); 88EO_VOID_FUNC_BODY(simple_pure_virtual, _EO_EMPTY_HOOK, _EO_EMPTY_HOOK);
89EO_VOID_FUNC_BODY(simple_no_implementation); 89EO_VOID_FUNC_BODY(simple_no_implementation, _EO_EMPTY_HOOK, _EO_EMPTY_HOOK);
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, int, 0); 122EO_FUNC_BODY_CONST(simple2_class_beef_get, _EO_EMPTY_HOOK, _EO_EMPTY_HOOK, 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),