this case you should wait for "done", "data" or "line"
events and then call it to retrieve (and own!) the data.
]]
- return: free(ptr(Eina.Binbuf), eina_binbuf_free) @owned @warn_unused; [[Binbuf]]
+ return: ptr(Eina.Binbuf) @owned @warn_unused; [[Binbuf]]
}
@property pending_size {
params {
name: string; [[Configuration option name]]
}
- return: free(ptr(generic_value), eina_value_free) @owned; [[Configuration option value]]
+ return: ptr(generic_value) @owned; [[Configuration option value]]
}
config_list_get @const {
[[Returns a list of generic values under a given key.]]
On failure, for example a read-only backing store was
adopted with @.adopt_readonly, NULL is returned.
]]
- return: free(ptr(Eina.Binbuf), eina_binbuf_free) @owned @warn_unused; [[Binbuf]]
+ return: ptr(Eina.Binbuf) @owned @warn_unused; [[Binbuf]]
}
}
get {
}
values {
- attributes: free(list<ptr(Elm.Atspi.Attribute) @owned>, elm_atspi_attributes_list_free) @owned; [[List of object attributes]]
+ /* FIXME: API for attribute free */
+ attributes: list<ptr(Elm.Atspi.Attribute) @owned> @owned; [[List of object attributes]]
}
}
@property index_in_parent @protected {
/* FIXME: Move to Eina when we decide they are handled properly. */
-struct @extern Eina.Rect {
+struct @extern @free(eina_rectangle_free) Eina.Rect {
[[A rectangle in pixel dimensions.]]
x: int; [[X coordinate of the rectangle, from the top-left corner.]]
y: int; [[Y coordinate of the rectangle, from the top-left corner.]]
static const char *eo_obj_free = "efl_del";
static const char *eo_str_free = "free";
static const char *eo_strshare_free = "eina_stringshare_del";
+static const char *eo_value_free = "eina_value_free";
static Eina_Bool
_validate_type(Eolian_Type *tp)
{
char buf[256];
- if ((tp->owned || tp->freefunc) && !database_type_is_ownable(tp, EINA_FALSE))
+ if (tp->owned && !database_type_is_ownable(tp, EINA_FALSE))
{
snprintf(buf, sizeof(buf), "type '%s' is not ownable", tp->full_name);
return _type_error(tp, buf);
case KW_stringshare:
tp->freefunc = eina_stringshare_add(eo_strshare_free);
break;
+ case KW_generic_value:
+ tp->freefunc = eina_stringshare_add(eo_value_free);
+ break;
default:
break;
}
@since 1.15
]]
- return: free(list<ptr(Eina.Rect)>, evas_render_updates_free)
- @owned @warn_unused; [[
+ return: list<ptr(Eina.Rect)> @owned @warn_unused; [[
A newly allocated list of updated rectangles of the canvas
($Eina.Rect structs). Free this list with
\@ref evas_render_updates_free.
See the full @ref Example_Evas_Events "example".
*/
- return: free(list<ptr(Eina.Rect)>, evas_render_updates_free)
- @owned @warn_unused; [[
+ return: list<ptr(Eina.Rect)> @owned @warn_unused; [[
A newly allocated list of updated rectangles of the canvas
($Eina.Rect structs). Free this list with
\@ref evas_render_updates_free.