diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2020-08-31 17:07:40 -0400 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2020-09-09 09:27:11 -0400 |
commit | 1ff5adfa5bad905e36bb7eff5e436e26793f111f (patch) | |
tree | f41ea648acc321c7839b32ed2797946bce0a7ee3 /include/io/dns-resolver.h | |
parent | c821774a3b7ca991d684c3966171d8657f842aea (diff) |
Use OBJECT_DECLARE_SIMPLE_TYPE when possible
Generated using:
$ ./scripts/codeconverter/converter.py -i \
--pattern=ObjectDeclareType $(git grep -l '' -- '*.[ch]')
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20200831210740.126168-19-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'include/io/dns-resolver.h')
-rw-r--r-- | include/io/dns-resolver.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/io/dns-resolver.h b/include/io/dns-resolver.h index 8ae4857e05..e248fba5bd 100644 --- a/include/io/dns-resolver.h +++ b/include/io/dns-resolver.h @@ -26,8 +26,8 @@ #include "io/task.h" #define TYPE_QIO_DNS_RESOLVER "qio-dns-resolver" -OBJECT_DECLARE_TYPE(QIODNSResolver, QIODNSResolverClass, - qio_dns_resolver, QIO_DNS_RESOLVER) +OBJECT_DECLARE_SIMPLE_TYPE(QIODNSResolver, qio_dns_resolver, + QIO_DNS_RESOLVER, ObjectClass) /** @@ -133,9 +133,6 @@ struct QIODNSResolver { Object parent; }; -struct QIODNSResolverClass { - ObjectClass parent; -}; /** |