efl/src/tests/eo/function_overrides/function_overrides_inherit3.c

36 lines
757 B
C
Raw Normal View History

#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "Eo.h"
2012-09-25 23:56:52 -07:00
#include "function_overrides_simple.h"
#include "function_overrides_inherit2.h"
#include "function_overrides_inherit3.h"
#define MY_CLASS INHERIT3_CLASS
static void
2013-11-08 02:15:22 -08:00
_a_set(Eo *obj, void *class_data EINA_UNUSED, int a)
{
printf("%s %d\n", eo_class_name_get(MY_CLASS), a);
simple_a_set(eo_super(obj, MY_CLASS), a + 1);
}
static Efl_Op_Description op_descs[] = {
2014-04-02 01:46:34 -07:00
EO_OP_FUNC_OVERRIDE(simple_a_set, _a_set),
};
static const Efl_Class_Description class_desc = {
2014-04-02 01:46:34 -07:00
EO_VERSION,
"Inherit3",
EO_CLASS_TYPE_REGULAR,
2014-04-02 01:46:34 -07:00
EO_CLASS_DESCRIPTION_OPS(op_descs),
NULL,
0,
NULL,
NULL
};
EO_DEFINE_CLASS(inherit3_class_get, &class_desc, INHERIT2_CLASS, NULL);