]> git.ipfire.org Git - thirdparty/qemu.git/commit
qdev: add helpers to be more explicit when using abstract QOM parent functions
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sun, 14 Jan 2018 02:04:11 +0000 (23:04 -0300)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 21 Jun 2018 01:45:04 +0000 (20:45 -0500)
commit18f59bbc7609d7c430ea389a3a3782dec27d1f05
tree0f9e14e9c957742aa68e759ce143b3d8b52c3e1b
parent0db89523a6f43c2d1f7a5a6bef23e564bb59b0ec
qdev: add helpers to be more explicit when using abstract QOM parent functions

QOM API learning curve is quite hard, in particular when devices inherit from
abstract parent.
To be more explicit about when a device class change the parent hooks, add few
helpers hoping a device class_init() will be easier to understand.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20180114020412.26160-3-f4bug@amsat.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 46795cf2e2f643ace9454822022ba8b1e9c0cf61)
*prereq for 0c53057adb
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/core/qdev.c
include/hw/qdev-core.h