static int qdev_add_one_global(QemuOpts *opts, void *opaque)

{

    GlobalProperty *g;

    ObjectClass *oc;



    g = g_malloc0(sizeof(*g));

    g->driver   = qemu_opt_get(opts, "driver");

    g->property = qemu_opt_get(opts, "property");

    g->value    = qemu_opt_get(opts, "value");

    oc = object_class_dynamic_cast(object_class_by_name(g->driver),

                                   TYPE_DEVICE);

    if (oc) {

        DeviceClass *dc = DEVICE_CLASS(oc);



        if (dc->hotpluggable) {

            /* If hotpluggable then skip not_used checking. */

            g->not_used = false;

        } else {

            /* Maybe a typo. */

            g->not_used = true;

        }

    } else {

        /* Maybe a typo. */

        g->not_used = true;

    }

    qdev_prop_register_global(g);

    return 0;

}

static int qdev_add_one_global(QemuOpts *opts, void *opaque)

{

    GlobalProperty *g;

    ObjectClass *oc;



    g = g_malloc0(sizeof(*g));

    g->driver   = qemu_opt_get(opts, "driver");

    g->property = qemu_opt_get(opts, "property");

    g->value    = qemu_opt_get(opts, "value");

    oc = object_class_dynamic_cast(object_class_by_name(g->driver),

                                   TYPE_DEVICE);

    if (oc) {

        DeviceClass *dc = DEVICE_CLASS(oc);



        if (dc->hotpluggable) {

            

            g->not_used = false;

        } else {

            

            g->not_used = true;

        }

    } else {

        

        g->not_used = true;

    }

    qdev_prop_register_global(g);

    return 0;

}

static int FUNC_0(QemuOpts *VAR_0, void *VAR_1)

{

    GlobalProperty *g;

    ObjectClass *oc;



    g = g_malloc0(sizeof(*g));

    g->driver   = qemu_opt_get(VAR_0, "driver");

    g->property = qemu_opt_get(VAR_0, "property");

    g->value    = qemu_opt_get(VAR_0, "value");

    oc = object_class_dynamic_cast(object_class_by_name(g->driver),

                                   TYPE_DEVICE);

    if (oc) {

        DeviceClass *dc = DEVICE_CLASS(oc);



        if (dc->hotpluggable) {

            

            g->not_used = false;

        } else {

            

            g->not_used = true;

        }

    } else {

        

        g->not_used = true;

    }

    qdev_prop_register_global(g);

    return 0;

}

static int FUNC_0(QemuOpts *VAR_0, void *VAR_1)
{ GlobalProperty *g; ObjectClass *oc; g = g_malloc0(sizeof(*g)); g->driver   = qemu_opt_get(VAR_0, "driver"); g->property = qemu_opt_get(VAR_0, "property"); g->value    = qemu_opt_get(VAR_0, "value"); oc = object_class_dynamic_cast(object_class_by_name(g->driver),
TYPE_DEVICE); if (oc) { DeviceClass *dc = DEVICE_CLASS(oc); if (dc->hotpluggable) { g->not_used = false; } else { g->not_used = true; } } else { g->not_used = true; } qdev_prop_register_global(g); return 0; }