summaryrefslogtreecommitdiffstats
path: root/include/io
diff options
context:
space:
mode:
authorEduardo Habkost2020-09-16 20:25:16 +0200
committerEduardo Habkost2020-09-18 20:12:32 +0200
commitc734cd40a10943753a4d015c9d0a6c08c8f0159e (patch)
treef3a0e5e0152e85da0f0d0bc4bb48eef2198867c4 /include/io
parentscripts/codeconverter: Update to latest version (diff)
downloadqemu-c734cd40a10943753a4d015c9d0a6c08c8f0159e.tar.gz
qemu-c734cd40a10943753a4d015c9d0a6c08c8f0159e.tar.xz
qemu-c734cd40a10943753a4d015c9d0a6c08c8f0159e.zip
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>
Diffstat (limited to 'include/io')
-rw-r--r--include/io/dns-resolver.h2
-rw-r--r--include/io/net-listener.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/io/dns-resolver.h b/include/io/dns-resolver.h
index e248fba5bd..9d14a8d98f 100644
--- a/include/io/dns-resolver.h
+++ b/include/io/dns-resolver.h
@@ -27,7 +27,7 @@
#define TYPE_QIO_DNS_RESOLVER "qio-dns-resolver"
OBJECT_DECLARE_SIMPLE_TYPE(QIODNSResolver, qio_dns_resolver,
- QIO_DNS_RESOLVER, ObjectClass)
+ QIO_DNS_RESOLVER)
/**
diff --git a/include/io/net-listener.h b/include/io/net-listener.h
index 60fad29ff4..8145962fbb 100644
--- a/include/io/net-listener.h
+++ b/include/io/net-listener.h
@@ -26,7 +26,7 @@
#define TYPE_QIO_NET_LISTENER "qio-net-listener"
OBJECT_DECLARE_SIMPLE_TYPE(QIONetListener, qio_net_listener,
- QIO_NET_LISTENER, ObjectClass)
+ QIO_NET_LISTENER)
typedef void (*QIONetListenerClientFunc)(QIONetListener *listener,