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

                                             Object *val, Error **errp)

{

    DeviceState *dev = DEVICE(obj);



    if (dev->realized) {

        error_setg(errp, "Attempt to set link property '%s' on device '%s' "

                   "(type '%s') after it was realized",

                   name, dev->id, object_get_typename(obj));

    }

}

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

                                             Object *val, Error **errp)

{

    DeviceState *dev = DEVICE(obj);



    if (dev->realized) {

        error_setg(errp, "Attempt to set link property '%s' on device '%s' "

                   "(type '%s') after it was realized",

                   name, dev->id, object_get_typename(obj));

    }

}

void qdev_prop_allow_set_link_before_realize(Object *obj, const char *name, void qdev_prop_allow_set_link_before_realize(Object *obj, const char *name,
void FUNC_0(Object *VAR_0, const char *VAR_1,

                                             Object *VAR_2, Error **VAR_3)

{

    DeviceState *dev = DEVICE(VAR_0);



    if (dev->realized) {

        error_setg(VAR_3, "Attempt to set link property '%s' on device '%s' "

                   "(type '%s') after it was realized",

                   VAR_1, dev->id, object_get_typename(VAR_0));

    }

}

void FUNC_0(Object *VAR_0, const char *VAR_1,
Object *VAR_2, Error **VAR_3)
{ DeviceState *dev = DEVICE(VAR_0); if (dev->realized) { error_setg(VAR_3, "Attempt to set link property '%s' on device '%s' "
"(type '%s') after it was realized",
VAR_1, dev->id, object_get_typename(VAR_0)); } }