Eobj: Added more function override tests.
[profile/ivi/eobj.git] / examples / function_overrides / inherit.c
1 #include "Eobj.h"
2 #include "simple.h"
3
4 #include "inherit.h"
5
6 static Eobj_Class *_my_class = NULL;
7
8 const Eobj_Class *
9 inherit_class_get(void)
10 {
11    if (_my_class) return _my_class;
12
13    static const Eobj_Class_Description class_desc = {
14         "Inherit",
15         EOBJ_CLASS_TYPE_REGULAR,
16         EOBJ_CLASS_DESCRIPTION_OPS(NULL, NULL, 0),
17         NULL,
18         0,
19         NULL,
20         NULL,
21         NULL,
22         NULL
23    };
24
25    return _my_class = eobj_class_new(&class_desc, SIMPLE_CLASS, NULL);
26 }