Function panda_sys::object_property_add_child[][src]

pub unsafe extern "C" fn object_property_add_child(
    obj: *mut Object,
    name: *const c_char,
    child: *mut Object,
    errp: *mut *mut Error
)
Expand description

object_property_add_child: @obj: the object to add a property to @name: the name of the property @child: the child object @errp: if an error occurs, a pointer to an area to store the area

Child properties form the composition tree. All objects need to be a child of another object. Objects can only be a child of one object.

There is no way for a child to determine what its parent is. It is not a bidirectional relationship. This is by design.

The value of a child property as a C string will be the child object’s canonical path. It can be retrieved using object_property_get_str(). The child object itself can be retrieved using object_property_get_link().