]> git.proxmox.com Git - mirror_qemu.git/commit - tests/device-introspect-test.c
qom: Make all interface types abstract
authorEduardo Habkost <ehabkost@redhat.com>
Mon, 12 Dec 2016 18:31:01 +0000 (16:31 -0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 16 Jan 2017 16:52:34 +0000 (17:52 +0100)
commit1c6d75d5f7c18ffc87e87d6c3ab6e55fb38fb076
tree4705e001812f5834487a58b0fdd7dac7bb9c9174
parent765a707000e838c30b18d712fe6cb3dd8e0435f3
qom: Make all interface types abstract

"qom-list-types abstract=false" currently returns all interface
types, as if they were not abstract. Fix this by making sure all
interface types are abstract.

All interface types have instance_size == 0, so we can use
it to set abstract=true on type_initialize().

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <1481567461-2341-1-git-send-email-ehabkost@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
qom/object.c
tests/device-introspect-test.c