efl/legacy/eobj/examples/constructors/simple2.c

41 lines
709 B
C

#include "eobj.h"
#include "mixin.h"
#include "simple2.h"
static Eobj_Class *_my_class = NULL;
static void
_constructor(Eobj *obj)
{
eobj_constructor_super(obj);
eobj_constructor_error_set(obj);
}
static void
_destructor(Eobj *obj)
{
eobj_destructor_super(obj);
}
const Eobj_Class *
simple2_class_get(void)
{
if (_my_class) return _my_class;
static const Eobj_Class_Description class_desc = {
"Simple2",
EOBJ_CLASS_TYPE_REGULAR,
EOBJ_CLASS_DESCRIPTION_OPS(NULL, NULL, 0),
NULL,
0,
_constructor,
_destructor,
NULL,
NULL
};
_my_class = eobj_class_new(&class_desc, EOBJ_CLASS_BASE, NULL);
return _my_class;
}