void object_property_add_child(Object *obj, const char *name,

                               Object *child, Error **errp)

{

    Error *local_err = NULL;

    gchar *type;



    type = g_strdup_printf("child<%s>", object_get_typename(OBJECT(child)));



    object_property_add(obj, name, type, object_get_child_property, NULL,

                        object_finalize_child_property, child, &local_err);

    if (local_err) {

        error_propagate(errp, local_err);

        goto out;

    }

    object_ref(child);

    g_assert(child->parent == NULL);

    child->parent = obj;



out:

    g_free(type);

}

void object_property_add_child(Object *obj, const char *name,

                               Object *child, Error **errp)

{

    Error *local_err = NULL;

    gchar *type;



    type = g_strdup_printf("child<%s>", object_get_typename(OBJECT(child)));



    object_property_add(obj, name, type, object_get_child_property, NULL,

                        object_finalize_child_property, child, &local_err);

    if (local_err) {

        error_propagate(errp, local_err);

        goto out;

    }

    object_ref(child);

    g_assert(child->parent == NULL);

    child->parent = obj;



out:

    g_free(type);

}

void FUNC_0(Object *VAR_0, const char *VAR_1,

                               Object *VAR_2, Error **VAR_3)

{

    Error *local_err = NULL;

    gchar *type;



    type = g_strdup_printf("VAR_2<%s>", object_get_typename(OBJECT(VAR_2)));



    object_property_add(VAR_0, VAR_1, type, object_get_child_property, NULL,

                        object_finalize_child_property, VAR_2, &local_err);

    if (local_err) {

        error_propagate(VAR_3, local_err);

        goto out;

    }

    object_ref(VAR_2);

    g_assert(VAR_2->parent == NULL);

    VAR_2->parent = VAR_0;



out:

    g_free(type);

}

void FUNC_0(Object *VAR_0, const char *VAR_1,
Object *VAR_2, Error **VAR_3)
{ Error *local_err = NULL; gchar *type; type = g_strdup_printf("VAR_2<%s>", object_get_typename(OBJECT(VAR_2))); object_property_add(VAR_0, VAR_1, type, object_get_child_property, NULL,
object_finalize_child_property, VAR_2, &local_err); if (local_err) { error_propagate(VAR_3, local_err); goto out; } object_ref(VAR_2); g_assert(VAR_2->parent == NULL); VAR_2->parent = VAR_0; out:
g_free(type); }