]> git.proxmox.com Git - mirror_qemu.git/commit - include/hw/qdev-core.h
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)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 5 Feb 2018 12:54:38 +0000 (13:54 +0100)
commit46795cf2e2f643ace9454822022ba8b1e9c0cf61
treea40e742f589b9738cc71492ce4d028d21ec603d6
parentb850f664a1dbbc1ea27bef12cd251ee5da0bfe05
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>
hw/core/qdev.c
include/hw/qdev-core.h