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/authz/simple.h | |
parent | c821774a3b7ca991d684c3966171d8657f842aea (diff) | |
download | qemu-1ff5adfa5bad905e36bb7eff5e436e26793f111f.zip qemu-1ff5adfa5bad905e36bb7eff5e436e26793f111f.tar.gz qemu-1ff5adfa5bad905e36bb7eff5e436e26793f111f.tar.bz2 |
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/authz/simple.h')
-rw-r--r-- | include/authz/simple.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/authz/simple.h b/include/authz/simple.h index ba4a5ec..346fcb0 100644 --- a/include/authz/simple.h +++ b/include/authz/simple.h @@ -26,8 +26,8 @@ #define TYPE_QAUTHZ_SIMPLE "authz-simple" -OBJECT_DECLARE_TYPE(QAuthZSimple, QAuthZSimpleClass, - qauthz_simple, QAUTHZ_SIMPLE) +OBJECT_DECLARE_SIMPLE_TYPE(QAuthZSimple, qauthz_simple, + QAUTHZ_SIMPLE, QAuthZClass) @@ -62,9 +62,6 @@ struct QAuthZSimple { }; -struct QAuthZSimpleClass { - QAuthZClass parent_class; -}; QAuthZSimple *qauthz_simple_new(const char *id, |