3 #include "simple_protected.h"
9 EAPI Eo_Op INHERIT_BASE_ID = 0;
11 #define MY_CLASS INHERIT_CLASS
14 _prot_print(Eo *obj, void *class_data EINA_UNUSED, va_list *list)
16 Simple_Protected_Data *pd = eo_data_get(obj, SIMPLE_CLASS);
18 printf("%s %d\n", __func__, pd->protected_x1);
22 _class_constructor(Eo_Class *klass)
24 const Eo_Op_Func_Description func_desc[] = {
25 EO_OP_FUNC(INHERIT_ID(INHERIT_SUB_ID_PROT_PRINT), _prot_print),
29 eo_class_funcs_set(klass, func_desc);
32 static const Eo_Op_Description op_desc[] = {
33 EO_OP_DESCRIPTION(INHERIT_SUB_ID_PROT_PRINT, "Print protected var x1."),
34 EO_OP_DESCRIPTION_SENTINEL
37 static const Eo_Class_Description class_desc = {
40 EO_CLASS_TYPE_REGULAR,
41 EO_CLASS_DESCRIPTION_OPS(&INHERIT_BASE_ID, op_desc, INHERIT_SUB_ID_LAST),
48 EO_DEFINE_CLASS(inherit_class_get, &class_desc, SIMPLE_CLASS, NULL)