return obj;
}
-EOLIAN static Eina_Strbuf *
+EOLIAN static void
_edje_object_efl_object_debug_name_override(Eo *obj, Edje *ed, Eina_Strbuf *sb)
{
- sb = efl_debug_name_override(efl_super(obj, MY_CLASS), sb);
+ efl_debug_name_override(efl_super(obj, MY_CLASS), sb);
eina_strbuf_append_printf(sb, ":file='%s':group='%s'",
ed->file ? eina_file_filename_get(ed->file->f) : NULL,
ed->group);
- return sb;
}
EOLIAN static void
}
}
-EOLIAN static Eina_Strbuf *
+EOLIAN static void
_efl_ui_win_efl_object_debug_name_override(Eo *obj, Efl_Ui_Win_Data *pd, Eina_Strbuf *sb)
{
- sb = efl_debug_name_override(efl_super(obj, MY_CLASS), sb);
+ efl_debug_name_override(efl_super(obj, MY_CLASS), sb);
eina_strbuf_append_printf(sb, ":'%s':'%s'", pd->name, pd->title);
- return sb;
}
EOLIAN static Eo*
sd->legacy = EINA_TRUE;
}
-EOLIAN static Eina_Strbuf *
+EOLIAN static void
_elm_widget_efl_object_debug_name_override(Eo *obj, Elm_Widget_Smart_Data *sd EINA_UNUSED, Eina_Strbuf *sb)
{
const char *focus = "";
if (elm_obj_widget_focus_get(obj)) focus = ":focused";
- sb = efl_debug_name_override(efl_super(obj, MY_CLASS), sb);
+ efl_debug_name_override(efl_super(obj, MY_CLASS), sb);
eina_strbuf_append_printf(sb, "%s", focus);
- return sb;
}
EOLIAN static Eina_Bool
the entire debug name, from parent to child classes. In C the usual
way to build the string is as follows:
- sb = efl_debug_name_override(efl_super(obj, MY_CLASS), sb);
+ efl_debug_name_override(efl_super(obj, MY_CLASS), sb);
eina_strbuf_append_printf(sb, "new_information");
- return sb;
- The receiving function should always either free the strbuf or
- returning it back to the caller, as ownership is transferred.
+ In general, more debug information should be added to $sb after
+ calling the super function.
@since 1.21
]]
params {
- @in sb: ptr(Eina.Strbuf) @owned; [[A string buffer, must not be $null.]]
+ @in sb: ptr(Eina.Strbuf); [[A string buffer, must not be $null.]]
}
- return: ptr(Eina.Strbuf) @owned; [[Should not be $null, may be $sb.]]
}
@property event_global_freeze_count @class {
get {
if (!obj->cur_klass)
{
- sb = efl_debug_name_override((Eo *) obj_id, sb);
+ efl_debug_name_override((Eo *) obj_id, sb);
}
else
{
if (obj->super)
- sb = efl_debug_name_override(efl_super(obj_id, (Efl_Class *) obj->cur_klass->header.id), sb);
+ efl_debug_name_override(efl_super(obj_id, (Efl_Class *) obj->cur_klass->header.id), sb);
else
- sb = efl_debug_name_override(efl_cast(obj_id, (Efl_Class *) obj->cur_klass->header.id), sb);
+ efl_debug_name_override(efl_cast(obj_id, (Efl_Class *) obj->cur_klass->header.id), sb);
obj->super = EINA_FALSE;
obj->cur_klass = NULL;
}
return pd->ext->comment;
}
-EOLIAN static Eina_Strbuf *
-_efl_object_debug_name_override(Eo *obj_id EINA_UNUSED, Efl_Object_Data *pd EINA_UNUSED, Eina_Strbuf *sb)
+EOLIAN static void
+_efl_object_debug_name_override(Eo *obj_id EINA_UNUSED, Efl_Object_Data *pd EINA_UNUSED, Eina_Strbuf *sb EINA_UNUSED)
{
- return sb;
}
EOLIAN static void
}
/* new in EO */
-EOLIAN Eina_Strbuf *
+EOLIAN void
_efl_canvas_object_efl_object_debug_name_override(Eo *eo_obj, Evas_Object_Protected_Data *obj, Eina_Strbuf *sb)
{
const char *norend = obj->no_render ? ":no_render" : "";
const char *clip = obj->clip.clipees ? ":clipper" : "";
- sb = efl_debug_name_override(efl_super(eo_obj, EFL_CANVAS_OBJECT_CLASS), sb);
+ efl_debug_name_override(efl_super(eo_obj, EFL_CANVAS_OBJECT_CLASS), sb);
if (obj->cur->visible)
{
eina_strbuf_append_printf(sb, "%s%s:(%d,%d %dx%d)", norend, clip,
{
eina_strbuf_append_printf(sb, ":hidden%s%s", norend, clip);
}
- return sb;
}
return pd->engine_data;
}
-EOLIAN static Eina_Strbuf *
+EOLIAN static void
_efl_canvas_image_internal_efl_object_debug_name_override(Eo *eo_obj, Evas_Image_Data *o, Eina_Strbuf *sb)
{
- sb = efl_debug_name_override(efl_super(eo_obj, MY_CLASS), sb);
+ efl_debug_name_override(efl_super(eo_obj, MY_CLASS), sb);
if (o->cur->f)
{
const char *fname = eina_file_filename_get(o->cur->f);
{
eina_strbuf_append_printf(sb, ":unknown_image");
}
- return sb;
}
#define EFL_CANVAS_IMAGE_INTERNAL_EXTRA_OPS \
}
}
-EOLIAN static Eina_Strbuf *
+EOLIAN static void
_efl_canvas_group_efl_object_debug_name_override(Eo *eo_obj, Evas_Smart_Data *o, Eina_Strbuf *sb)
{
Evas_Object_Protected_Data *obj = efl_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
if (obj->smart.smart && obj->smart.smart->smart_class)
smart_class = obj->smart.smart->smart_class->name;
- sb = efl_debug_name_override(efl_super(eo_obj, MY_CLASS), sb);
+ efl_debug_name_override(efl_super(eo_obj, MY_CLASS), sb);
if (smart_class)
{
eina_strbuf_append_printf(sb, ":children=%d:smart_class=%s",
{
eina_strbuf_append_printf(sb, ":children=%d", eina_inlist_count(o->contained));
}
- return sb;
}
static inline void