mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
qdev: remove QDEV_PROP_PTR
No longer used in the tree. The comment about user_creatable is still quite relevant, but there is already a similar comment in qdev-core.h. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
5c4d910f2d
commit
70f3d674bc
2 changed files with 0 additions and 40 deletions
|
@ -501,13 +501,6 @@ const PropertyInfo qdev_prop_string = {
|
|||
.set = set_string,
|
||||
};
|
||||
|
||||
/* --- pointer --- */
|
||||
|
||||
/* Not a proper property, just for dirty hacks. TODO Remove it! */
|
||||
const PropertyInfo qdev_prop_ptr = {
|
||||
.name = "ptr",
|
||||
};
|
||||
|
||||
/* --- mac address --- */
|
||||
|
||||
/*
|
||||
|
@ -1165,17 +1158,6 @@ void qdev_prop_set_enum(DeviceState *dev, const char *name, int value)
|
|||
name, &error_abort);
|
||||
}
|
||||
|
||||
void qdev_prop_set_ptr(DeviceState *dev, const char *name, void *value)
|
||||
{
|
||||
Property *prop;
|
||||
void **ptr;
|
||||
|
||||
prop = qdev_prop_find(dev, name);
|
||||
assert(prop && prop->info == &qdev_prop_ptr);
|
||||
ptr = qdev_get_prop_ptr(dev, prop);
|
||||
*ptr = value;
|
||||
}
|
||||
|
||||
static GPtrArray *global_props(void)
|
||||
{
|
||||
static GPtrArray *gp;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue