Eo: add autotools tests. I have plenty of errors with the unit tests on Windows
[profile/ivi/eobj.git] / src / tests / mixin / inherit.c
1 #ifdef HAVE_CONFIG_H
2 # include <config.h>
3 #endif
4
5 #include "Eo.h"
6 #include "simple.h"
7 #include "mixin4.h"
8 #include "inherit.h"
9
10 #define MY_CLASS INHERIT_CLASS
11
12 static void
13 _a_get(Eo *obj, void *class_data EINA_UNUSED, va_list *list)
14 {
15    int *name = va_arg(*list, int *);
16    eo_do_super(obj, simple_a_get(name));
17    printf("%s\n", __func__);
18 }
19
20 static void
21 _class_constructor(Eo_Class *klass)
22 {
23    const Eo_Op_Func_Description func_desc[] = {
24         EO_OP_FUNC(SIMPLE_ID(SIMPLE_SUB_ID_A_GET), _a_get),
25         EO_OP_FUNC_SENTINEL
26    };
27
28    eo_class_funcs_set(klass, func_desc);
29 }
30
31 static const Eo_Class_Description class_desc = {
32      EO_VERSION,
33      "Inherit",
34      EO_CLASS_TYPE_REGULAR,
35      EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0),
36      NULL,
37      0,
38      _class_constructor,
39      NULL
40 };
41
42 EO_DEFINE_CLASS(inherit_class_get, &class_desc, SIMPLE_CLASS, MIXIN4_CLASS, NULL);