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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-08-15 06:44:41 -07:00
|
|
|
EAPI EFL_VOID_FUNC_BODYV(simple_other_call, EFL_FUNC_CALL(other, times), Eo *other, int times);
|
2015-10-14 02:54:02 -07:00
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2016-08-15 06:44:41 -07:00
|
|
|
EAPI EFL_VOID_FUNC_BODYV(simple_a_set, EFL_FUNC_CALL(a), int a);
|
2012-08-26 06:18:44 -07:00
|
|
|
|
2016-09-06 05:57:55 -07:00
|
|
|
static Eina_Bool
|
|
|
|
_class_initializer(Efl_Class *klass)
|
|
|
|
{
|
|
|
|
EFL_OPS_DEFINE(ops,
|
|
|
|
EFL_OBJECT_OP_FUNC(simple_a_set, _a_set),
|
|
|
|
EFL_OBJECT_OP_FUNC(simple_other_call, _other_call),
|
|
|
|
);
|
|
|
|
|
2019-02-06 00:53:25 -08:00
|
|
|
return efl_class_functions_set(klass, &ops, NULL, NULL);
|
2016-09-06 05:57:55 -07:00
|
|
|
}
|
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",
|
2016-08-15 06:44:41 -07:00
|
|
|
EFL_CLASS_TYPE_REGULAR,
|
2012-08-26 06:18:44 -07:00
|
|
|
sizeof(Simple_Public_Data),
|
2016-09-06 05:57:55 -07:00
|
|
|
_class_initializer,
|
2014-04-23 01:23:39 -07:00
|
|
|
NULL,
|
2012-08-26 06:18:44 -07:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2016-08-15 06:44:41 -07:00
|
|
|
EFL_DEFINE_CLASS(simple_class_get, &class_desc, EO_CLASS, NULL)
|
2012-08-26 06:18:44 -07:00
|
|
|
|