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/list.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/authz/list.h')
-rw-r--r-- | include/authz/list.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/authz/list.h b/include/authz/list.h index e4e1040472..5676bb375c 100644 --- a/include/authz/list.h +++ b/include/authz/list.h @@ -27,8 +27,8 @@ #define TYPE_QAUTHZ_LIST "authz-list" -OBJECT_DECLARE_TYPE(QAuthZList, QAuthZListClass, - qauthz_list, QAUTHZ_LIST) +OBJECT_DECLARE_SIMPLE_TYPE(QAuthZList, qauthz_list, + QAUTHZ_LIST, QAuthZClass) @@ -68,9 +68,6 @@ struct QAuthZList { }; -struct QAuthZListClass { - QAuthZClass parent_class; -}; QAuthZList *qauthz_list_new(const char *id, |