Re: [Qemu-devel] [PATCH v2 01/10] qom: make user_creatable_complete() specific to UserCreatable

2018-11-01 Thread Igor Mammedov
On Tue, 30 Oct 2018 19:04:44 +0400 Marc-André Lureau wrote: > 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:

[Qemu-devel] [PATCH v2 01/10] qom: make user_creatable_complete() specific to UserCreatable

2018-10-30 Thread Marc-André Lureau
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 --- include/qom/object_interfaces.h | 4 ++--