diff options
author | Marc-André Lureau | 2018-12-04 15:20:07 +0100 |
---|---|---|
committer | Eduardo Habkost | 2018-12-11 18:45:22 +0100 |
commit | 3650b2de3418daf38960a1d87f6ce1f1bf80183c (patch) | |
tree | 0c1ab4967bfd17df8ce7e50f8e4dabab7a89a533 /include/qom | |
parent | qom: make interface types abstract (diff) | |
download | qemu-3650b2de3418daf38960a1d87f6ce1f1bf80183c.tar.gz qemu-3650b2de3418daf38960a1d87f6ce1f1bf80183c.tar.xz qemu-3650b2de3418daf38960a1d87f6ce1f1bf80183c.zip |
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>
Diffstat (limited to 'include/qom')
-rw-r--r-- | include/qom/object_interfaces.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/qom/object_interfaces.h b/include/qom/object_interfaces.h index 652a16d2ba..682ba1d9b0 100644 --- a/include/qom/object_interfaces.h +++ b/include/qom/object_interfaces.h @@ -51,14 +51,14 @@ typedef struct UserCreatableClass { /** * user_creatable_complete: - * @obj: the object whose complete() method is called if defined + * @uc: the user-creatable object whose complete() method is called if defined * @errp: if an error occurs, a pointer to an area to store the error * * Wrapper to call complete() method if one of types it's inherited * from implements USER_CREATABLE interface, otherwise the call does * nothing. */ -void user_creatable_complete(Object *obj, Error **errp); +void user_creatable_complete(UserCreatable *uc, Error **errp); /** * user_creatable_can_be_deleted: |