Eobj: s/__UNUSED__/EINA_UNUSED/ I had no idea that exists.
[profile/ivi/eobj.git] / examples / constructors / simple3.c
1 #include "Eobj.h"
2 #include "mixin.h"
3 #include "simple3.h"
4
5 #include "config.h"
6
7 static const Eobj_Class *_my_class = NULL;
8
9 static void
10 _constructor(Eobj *obj, void *class_data EINA_UNUSED)
11 {
12    (void) obj;
13 }
14
15 const Eobj_Class *
16 simple3_class_get(void)
17 {
18    if (_my_class) return _my_class;
19
20    static const Eobj_Class_Description class_desc = {
21         "Simple3",
22         EOBJ_CLASS_TYPE_REGULAR,
23         EOBJ_CLASS_DESCRIPTION_OPS(NULL, NULL, 0),
24         NULL,
25         0,
26         _constructor,
27         NULL,
28         NULL,
29         NULL
30    };
31
32    _my_class = eobj_class_new(&class_desc, EOBJ_BASE_CLASS, NULL);
33    return _my_class;
34 }