diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-11-23 09:47:15 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-11-26 13:41:00 -0600 |
commit | 64b625f4b2fdb2c873e25c149648b2ce923faab7 (patch) | |
tree | c0ecebd3d237877cba1d232454ae5dd43d27b43c /hw/qdev-core.h | |
parent | fde9bf4470d4a3b6ee1da0dee2370ab028b6314a (diff) | |
download | qemu-64b625f4b2fdb2c873e25c149648b2ce923faab7.zip qemu-64b625f4b2fdb2c873e25c149648b2ce923faab7.tar.gz qemu-64b625f4b2fdb2c873e25c149648b2ce923faab7.tar.bz2 |
qdev: simplify (de)allocation of buses
All conditional deallocation can now be done with object_delete.
Remove the @qom_allocated and @glib_allocated fields; replace the latter
with a direct assignment of the @free function pointer.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/qdev-core.h')
-rw-r--r-- | hw/qdev-core.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/hw/qdev-core.h b/hw/qdev-core.h index fce9e22..fff7f0f 100644 --- a/hw/qdev-core.h +++ b/hw/qdev-core.h @@ -106,17 +106,12 @@ typedef struct BusChild { /** * BusState: - * @qom_allocated: Indicates whether the object was allocated by QOM. - * @glib_allocated: Indicates whether the object was initialized in-place - * yet is expected to be freed with g_free(). */ struct BusState { Object obj; DeviceState *parent; const char *name; int allow_hotplug; - bool qom_allocated; - bool glib_allocated; int max_index; QTAILQ_HEAD(ChildrenHead, BusChild) children; QLIST_ENTRY(BusState) sibling; |