7 EAPI Eo_Op MIXIN_BASE_ID = 0;
9 #define MY_CLASS MIXIN_CLASS
12 _ab_sum_get(const Eo *obj, const void *class_data EINA_UNUSED, va_list *list)
15 eo_query(obj, simple_a_get(&a), simple_b_get(&b));
16 int *sum = va_arg(*list, int *);
19 printf("%s %s\n", eo_class_name_get(MY_CLASS), __func__);
23 _constructor(Eo *obj, void *class_data EINA_UNUSED)
25 eo_constructor_super(obj);
29 _destructor(Eo *obj, void *class_data EINA_UNUSED)
31 eo_destructor_super(obj);
35 _class_constructor(Eo_Class *klass)
37 const Eo_Op_Func_Description func_desc[] = {
38 EO_OP_FUNC_CONST(MIXIN_ID(MIXIN_SUB_ID_AB_SUM_GET), _ab_sum_get),
42 eo_class_funcs_set(klass, func_desc);
46 static const Eo_Op_Description op_desc[] = {
47 EO_OP_DESCRIPTION_CONST(MIXIN_SUB_ID_AB_SUM_GET, "Get the sum of a and b."),
48 EO_OP_DESCRIPTION_SENTINEL
51 static const Eo_Class_Description class_desc = {
54 EO_CLASS_DESCRIPTION_OPS(&MIXIN_BASE_ID, op_desc, MIXIN_SUB_ID_LAST),
63 EO_DEFINE_CLASS(mixin_class_get, &class_desc, NULL, NULL)