2012-09-07 14:56:44 -07:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
# include <config.h>
|
|
|
|
#endif
|
|
|
|
|
2012-05-01 00:40:14 -07:00
|
|
|
#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"
|
2012-04-12 01:27:38 -07:00
|
|
|
|
2012-04-23 01:09:54 -07:00
|
|
|
#define MY_CLASS INHERIT3_CLASS
|
2012-04-12 01:27:38 -07:00
|
|
|
|
|
|
|
static void
|
2013-11-08 02:15:22 -08:00
|
|
|
_a_set(Eo *obj, void *class_data EINA_UNUSED, int a)
|
2012-04-12 01:27:38 -07:00
|
|
|
{
|
2012-05-01 00:40:14 -07:00
|
|
|
printf("%s %d\n", eo_class_name_get(MY_CLASS), a);
|
2016-03-01 10:06:28 -08:00
|
|
|
simple_a_set(eo_super(obj, MY_CLASS), a + 1);
|
2012-04-12 01:27:38 -07:00
|
|
|
}
|
|
|
|
|
2016-08-10 07:23:04 -07:00
|
|
|
static Efl_Op_Description op_descs[] = {
|
2014-04-02 01:46:34 -07:00
|
|
|
EO_OP_FUNC_OVERRIDE(simple_a_set, _a_set),
|
2013-11-07 09:00:09 -08:00
|
|
|
};
|
2012-04-12 01:27:38 -07:00
|
|
|
|
2016-08-10 07:23:04 -07:00
|
|
|
static const Efl_Class_Description class_desc = {
|
2014-04-02 01:46:34 -07:00
|
|
|
EO_VERSION,
|
2012-04-23 01:09:54 -07:00
|
|
|
"Inherit3",
|
2012-05-01 00:40:14 -07:00
|
|
|
EO_CLASS_TYPE_REGULAR,
|
2014-04-02 01:46:34 -07:00
|
|
|
EO_CLASS_DESCRIPTION_OPS(op_descs),
|
2012-04-23 01:09:54 -07:00
|
|
|
NULL,
|
|
|
|
0,
|
2013-11-07 09:00:09 -08:00
|
|
|
NULL,
|
2012-04-23 01:09:54 -07:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2012-05-01 00:40:14 -07:00
|
|
|
EO_DEFINE_CLASS(inherit3_class_get, &class_desc, INHERIT2_CLASS, NULL);
|
2012-04-12 01:27:38 -07:00
|
|
|
|