mirror of
https://github.com/qemu/qemu.git
synced 2024-11-28 14:24:02 +08:00
authz: Use OBJECT_CHECK() on objects
TYPE_QAUTHZ is an abstract object of type TYPE_OBJECT. All other are children of TYPE_QAUTHZ, thus also objects. Keep INTERFACE_CHECK() for interfaces, and use OBJECT_CHECK() on objects. Reported-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
62a172e6a7
commit
063603d43e
@ -35,8 +35,8 @@
|
||||
OBJECT_GET_CLASS(QAuthZClass, (obj), \
|
||||
TYPE_QAUTHZ)
|
||||
#define QAUTHZ(obj) \
|
||||
INTERFACE_CHECK(QAuthZ, (obj), \
|
||||
TYPE_QAUTHZ)
|
||||
OBJECT_CHECK(QAuthZ, (obj), \
|
||||
TYPE_QAUTHZ)
|
||||
|
||||
typedef struct QAuthZ QAuthZ;
|
||||
typedef struct QAuthZClass QAuthZClass;
|
||||
|
@ -33,8 +33,8 @@
|
||||
OBJECT_GET_CLASS(QAuthZListClass, (obj), \
|
||||
TYPE_QAUTHZ_LIST)
|
||||
#define QAUTHZ_LIST(obj) \
|
||||
INTERFACE_CHECK(QAuthZList, (obj), \
|
||||
TYPE_QAUTHZ_LIST)
|
||||
OBJECT_CHECK(QAuthZList, (obj), \
|
||||
TYPE_QAUTHZ_LIST)
|
||||
|
||||
typedef struct QAuthZList QAuthZList;
|
||||
typedef struct QAuthZListClass QAuthZListClass;
|
||||
|
@ -34,8 +34,8 @@
|
||||
OBJECT_GET_CLASS(QAuthZListFileClass, (obj), \
|
||||
TYPE_QAUTHZ_LIST_FILE)
|
||||
#define QAUTHZ_LIST_FILE(obj) \
|
||||
INTERFACE_CHECK(QAuthZListFile, (obj), \
|
||||
TYPE_QAUTHZ_LIST_FILE)
|
||||
OBJECT_CHECK(QAuthZListFile, (obj), \
|
||||
TYPE_QAUTHZ_LIST_FILE)
|
||||
|
||||
typedef struct QAuthZListFile QAuthZListFile;
|
||||
typedef struct QAuthZListFileClass QAuthZListFileClass;
|
||||
|
@ -33,8 +33,8 @@
|
||||
OBJECT_GET_CLASS(QAuthZPAMClass, (obj), \
|
||||
TYPE_QAUTHZ_PAM)
|
||||
#define QAUTHZ_PAM(obj) \
|
||||
INTERFACE_CHECK(QAuthZPAM, (obj), \
|
||||
TYPE_QAUTHZ_PAM)
|
||||
OBJECT_CHECK(QAuthZPAM, (obj), \
|
||||
TYPE_QAUTHZ_PAM)
|
||||
|
||||
typedef struct QAuthZPAM QAuthZPAM;
|
||||
typedef struct QAuthZPAMClass QAuthZPAMClass;
|
||||
|
@ -32,8 +32,8 @@
|
||||
OBJECT_GET_CLASS(QAuthZSimpleClass, (obj), \
|
||||
TYPE_QAUTHZ_SIMPLE)
|
||||
#define QAUTHZ_SIMPLE(obj) \
|
||||
INTERFACE_CHECK(QAuthZSimple, (obj), \
|
||||
TYPE_QAUTHZ_SIMPLE)
|
||||
OBJECT_CHECK(QAuthZSimple, (obj), \
|
||||
TYPE_QAUTHZ_SIMPLE)
|
||||
|
||||
typedef struct QAuthZSimple QAuthZSimple;
|
||||
typedef struct QAuthZSimpleClass QAuthZSimpleClass;
|
||||
|
Loading…
Reference in New Issue
Block a user