2012-09-04 00:03:02 -07:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
# include <config.h>
|
|
|
|
#endif
|
|
|
|
|
2012-08-26 06:18:44 -07:00
|
|
|
#include "Eo.h"
|
|
|
|
#include "class_simple.h"
|
|
|
|
|
|
|
|
#define MY_CLASS SIMPLE_CLASS
|
|
|
|
|
2016-08-10 07:23:04 -07:00
|
|
|
EOAPI const Efl_Event_Description _SIMPLE_FOO = EFL_EVENT_DESCRIPTION("foo");
|
|
|
|
EOAPI const Efl_Event_Description _SIMPLE_BAR = EFL_EVENT_DESCRIPTION("bar");
|
2015-10-14 07:03:33 -07:00
|
|
|
|
2015-10-14 02:54:02 -07:00
|
|
|
static void
|
|
|
|
_other_call(Eo *obj EINA_UNUSED, void *class_data EINA_UNUSED, Eo *other, int times)
|
|
|
|
{
|
|
|
|
if (times > 0)
|
|
|
|
{
|
2016-03-01 10:06:28 -08:00
|
|
|
simple_other_call(other, obj, times-1);
|
2015-10-14 02:54:02 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
EAPI EO_VOID_FUNC_BODYV(simple_other_call, EO_FUNC_CALL(other, times), Eo *other, int times);
|
|
|
|
|
2012-08-26 06:18:44 -07:00
|
|
|
static void
|
2014-04-23 01:23:39 -07:00
|
|
|
_a_set(Eo *obj EINA_UNUSED, void *class_data, int a)
|
2012-08-26 06:18:44 -07:00
|
|
|
{
|
|
|
|
Simple_Public_Data *pd = class_data;
|
|
|
|
pd->a = a;
|
|
|
|
}
|
|
|
|
|
2014-04-23 01:23:39 -07:00
|
|
|
EAPI EO_VOID_FUNC_BODYV(simple_a_set, EO_FUNC_CALL(a), int a);
|
2012-08-26 06:18:44 -07:00
|
|
|
|
2016-08-10 07:23:04 -07:00
|
|
|
static Efl_Op_Description op_desc[] = {
|
2015-09-28 08:05:08 -07:00
|
|
|
EO_OP_FUNC(simple_a_set, _a_set),
|
2015-10-14 02:54:02 -07:00
|
|
|
EO_OP_FUNC(simple_other_call, _other_call),
|
2012-08-26 06:18:44 -07:00
|
|
|
};
|
|
|
|
|
2016-08-10 07:23:04 -07:00
|
|
|
static const Efl_Class_Description class_desc = {
|
2012-08-26 06:18:44 -07:00
|
|
|
EO_VERSION,
|
|
|
|
"Simple",
|
|
|
|
EO_CLASS_TYPE_REGULAR,
|
2014-04-23 01:23:39 -07:00
|
|
|
EO_CLASS_DESCRIPTION_OPS(op_desc),
|
2012-08-26 06:18:44 -07:00
|
|
|
NULL,
|
|
|
|
sizeof(Simple_Public_Data),
|
2014-04-23 01:23:39 -07:00
|
|
|
NULL,
|
2012-08-26 06:18:44 -07:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2014-04-02 04:01:16 -07:00
|
|
|
EO_DEFINE_CLASS(simple_class_get, &class_desc, EO_CLASS, NULL)
|
2012-08-26 06:18:44 -07:00
|
|
|
|