]> git.proxmox.com Git - mirror_qemu.git/commit
qom: make user_creatable_complete() specific to UserCreatable
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 4 Dec 2018 14:20:07 +0000 (18:20 +0400)
committerEduardo Habkost <ehabkost@redhat.com>
Tue, 11 Dec 2018 17:45:22 +0000 (15:45 -0200)
commit3650b2de3418daf38960a1d87f6ce1f1bf80183c
tree0c1ab4967bfd17df8ce7e50f8e4dabab7a89a533
parentaa1b35b975d83a1ee3b5d1a1ae200a59ca44f8d2
qom: make user_creatable_complete() specific to UserCreatable

Instead of accepting any Object*, change user_creatable_complete() to
require a UserCreatable*. Modify the callers to pass the appropriate
argument, removing redundant dynamic cast checks in object creation.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20181204142023.15982-4-marcandre.lureau@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/misc/ivshmem.c
hw/virtio/virtio-rng.c
include/qom/object_interfaces.h
qom/object.c
qom/object_interfaces.c