qom: Remove ParentClassType argument from OBJECT_DECLARE_SIMPLE_TYPE
commitc734cd40a10943753a4d015c9d0a6c08c8f0159e
authorEduardo Habkost <ehabkost@redhat.com>
Wed, 16 Sep 2020 18:25:16 +0000 (16 14:25 -0400)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 18 Sep 2020 18:12:32 +0000 (18 14:12 -0400)
treef3a0e5e0152e85da0f0d0bc4bb48eef2198867c4
parent4a15e5bef8ec4322d4192dc4ab0b6149d415b990
qom: Remove ParentClassType argument from OBJECT_DECLARE_SIMPLE_TYPE

The requirement to specify the parent class type makes the macro
harder to use and easy to misuse (silent bugs can be introduced
if the wrong struct type is specified).

Simplify the macro by just not declaring any class struct,
allowing us to remove the class_size field from the TypeInfo
variables for those types.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200916182519.415636-3-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
20 files changed:
authz/list.c
authz/listfile.c
authz/pamacct.c
authz/simple.c
backends/dbus-vmstate.c
backends/vhost-user.c
crypto/secret_keyring.c
include/authz/list.h
include/authz/listfile.h
include/authz/pamacct.h
include/authz/simple.h
include/crypto/secret_keyring.h
include/io/dns-resolver.h
include/io/net-listener.h
include/qom/object.h
include/sysemu/vhost-user-backend.h
io/dns-resolver.c
io/net-listener.c
ui/input-barrier.c
ui/input-linux.c