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>
This commit is contained in:
Eduardo Habkost 2020-08-31 17:07:40 -04:00
parent c821774a3b
commit 1ff5adfa5b
11 changed files with 22 additions and 55 deletions

View file

@ -27,8 +27,8 @@
#define TYPE_QAUTHZ_PAM "authz-pam"
OBJECT_DECLARE_TYPE(QAuthZPAM, QAuthZPAMClass,
qauthz_pam, QAUTHZ_PAM)
OBJECT_DECLARE_SIMPLE_TYPE(QAuthZPAM, qauthz_pam,
QAUTHZ_PAM, QAuthZClass)
@ -79,9 +79,6 @@ struct QAuthZPAM {
};
struct QAuthZPAMClass {
QAuthZClass parent_class;
};
QAuthZPAM *qauthz_pam_new(const char *id,