mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
qdev: Add const qualifier to PropertyInfo definitions
The remaining non-const ones are in e1000e which modifies description at runtime. They can be addressed separatedly. Signed-off-by: Fam Zheng <famz@redhat.com> Message-Id: <20170714021509.23681-6-famz@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
75ab905383
commit
1b6b7d109e
9 changed files with 61 additions and 61 deletions
|
@ -159,7 +159,7 @@ static void set_drive(Object *obj, Visitor *v, const char *name, void *opaque,
|
|||
set_pointer(obj, v, opaque, parse_drive, name, errp);
|
||||
}
|
||||
|
||||
PropertyInfo qdev_prop_drive = {
|
||||
const PropertyInfo qdev_prop_drive = {
|
||||
.name = "str",
|
||||
.description = "Node name or ID of a block device to use as a backend",
|
||||
.get = get_drive,
|
||||
|
@ -228,7 +228,7 @@ static void release_chr(Object *obj, const char *name, void *opaque)
|
|||
qemu_chr_fe_deinit(be, false);
|
||||
}
|
||||
|
||||
PropertyInfo qdev_prop_chr = {
|
||||
const PropertyInfo qdev_prop_chr = {
|
||||
.name = "str",
|
||||
.description = "ID of a chardev to use as a backend",
|
||||
.get = get_chr,
|
||||
|
@ -313,7 +313,7 @@ out:
|
|||
g_free(str);
|
||||
}
|
||||
|
||||
PropertyInfo qdev_prop_netdev = {
|
||||
const PropertyInfo qdev_prop_netdev = {
|
||||
.name = "str",
|
||||
.description = "ID of a netdev to use as a backend",
|
||||
.get = get_netdev,
|
||||
|
@ -393,7 +393,7 @@ static void set_vlan(Object *obj, Visitor *v, const char *name, void *opaque,
|
|||
*ptr = hubport;
|
||||
}
|
||||
|
||||
PropertyInfo qdev_prop_vlan = {
|
||||
const PropertyInfo qdev_prop_vlan = {
|
||||
.name = "int32",
|
||||
.description = "Integer VLAN id to connect to",
|
||||
.print = print_vlan,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue