7ecc874d23f6ac90fd07574214fba0e44cec3aab
[profile/ivi/eobj.git] / src / tests / constructors / simple3.c
1 #include "Eo.h"
2 #include "mixin.h"
3 #include "simple3.h"
4
5 #include "config.h"
6
7 #define MY_CLASS SIMPLE3_CLASS
8
9 static void
10 _constructor(Eo *obj, void *class_data EINA_UNUSED, va_list *list EINA_UNUSED)
11 {
12    (void) obj;
13 }
14
15 static void
16 _class_constructor(Eo_Class *klass)
17 {
18    const Eo_Op_Func_Description func_desc[] = {
19         EO_OP_FUNC(EO_BASE_ID(EO_BASE_SUB_ID_CONSTRUCTOR), _constructor),
20         EO_OP_FUNC_SENTINEL
21    };
22
23    eo_class_funcs_set(klass, func_desc);
24 }
25
26 static const Eo_Class_Description class_desc = {
27      "Simple3",
28      EO_CLASS_TYPE_REGULAR,
29      EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0),
30      NULL,
31      0,
32      _class_constructor,
33      NULL
34 };
35
36 EO_DEFINE_CLASS(simple3_class_get, &class_desc, EO_BASE_CLASS, NULL);
37