void qdev_property_add_child(DeviceState *dev, const char *name,

                             DeviceState *child, Error **errp)

{

    gchar *type;



    type = g_strdup_printf("child<%s>", child->info->name);



    qdev_property_add(dev, name, type, qdev_get_child_property,

                      NULL, NULL, child, errp);



    qdev_ref(child);

    g_assert(child->parent == NULL);

    child->parent = dev;



    g_free(type);

}

void qdev_property_add_child(DeviceState *dev, const char *name,

                             DeviceState *child, Error **errp)

{

    gchar *type;



    type = g_strdup_printf("child<%s>", child->info->name);



    qdev_property_add(dev, name, type, qdev_get_child_property,

                      NULL, NULL, child, errp);



    qdev_ref(child);

    g_assert(child->parent == NULL);

    child->parent = dev;



    g_free(type);

}

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

                             DeviceState *VAR_2, Error **VAR_3)

{

    gchar *type;



    type = g_strdup_printf("VAR_2<%s>", VAR_2->info->VAR_1);



    qdev_property_add(VAR_0, VAR_1, type, qdev_get_child_property,

                      NULL, NULL, VAR_2, VAR_3);



    qdev_ref(VAR_2);

    g_assert(VAR_2->parent == NULL);

    VAR_2->parent = VAR_0;



    g_free(type);

}

void FUNC_0(DeviceState *VAR_0, const char *VAR_1,
DeviceState *VAR_2, Error **VAR_3)
{ gchar *type; type = g_strdup_printf("VAR_2<%s>", VAR_2->info->VAR_1); qdev_property_add(VAR_0, VAR_1, type, qdev_get_child_property,
NULL, NULL, VAR_2, VAR_3); qdev_ref(VAR_2); g_assert(VAR_2->parent == NULL); VAR_2->parent = VAR_0; g_free(type); }