mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 18:44:58 -06:00
Use DECLARE_*CHECKER* macros
Generated using: $ ./scripts/codeconverter/converter.py -i \ --pattern=TypeCheckMacro $(git grep -l '' -- '*.[ch]') Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Message-Id: <20200831210740.126168-12-ehabkost@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Message-Id: <20200831210740.126168-13-ehabkost@redhat.com> Message-Id: <20200831210740.126168-14-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
db1015e92e
commit
8110fa1d94
791 changed files with 1987 additions and 2423 deletions
|
@ -33,7 +33,8 @@
|
|||
|
||||
#define TYPE_KVM_CLOCK "kvmclock"
|
||||
typedef struct KVMClockState KVMClockState;
|
||||
#define KVM_CLOCK(obj) OBJECT_CHECK(KVMClockState, (obj), TYPE_KVM_CLOCK)
|
||||
DECLARE_INSTANCE_CHECKER(KVMClockState, KVM_CLOCK,
|
||||
TYPE_KVM_CLOCK)
|
||||
|
||||
struct KVMClockState {
|
||||
/*< private >*/
|
||||
|
|
|
@ -41,11 +41,8 @@
|
|||
|
||||
typedef struct KVMPITClass KVMPITClass;
|
||||
typedef struct KVMPITState KVMPITState;
|
||||
#define KVM_PIT(obj) OBJECT_CHECK(KVMPITState, (obj), TYPE_KVM_I8254)
|
||||
#define KVM_PIT_CLASS(class) \
|
||||
OBJECT_CLASS_CHECK(KVMPITClass, (class), TYPE_KVM_I8254)
|
||||
#define KVM_PIT_GET_CLASS(obj) \
|
||||
OBJECT_GET_CLASS(KVMPITClass, (obj), TYPE_KVM_I8254)
|
||||
DECLARE_OBJ_CHECKERS(KVMPITState, KVMPITClass,
|
||||
KVM_PIT, TYPE_KVM_I8254)
|
||||
|
||||
struct KVMPITState {
|
||||
PITCommonState parent_obj;
|
||||
|
|
|
@ -21,10 +21,8 @@
|
|||
|
||||
#define TYPE_KVM_I8259 "kvm-i8259"
|
||||
typedef struct KVMPICClass KVMPICClass;
|
||||
#define KVM_PIC_CLASS(class) \
|
||||
OBJECT_CLASS_CHECK(KVMPICClass, (class), TYPE_KVM_I8259)
|
||||
#define KVM_PIC_GET_CLASS(obj) \
|
||||
OBJECT_GET_CLASS(KVMPICClass, (obj), TYPE_KVM_I8259)
|
||||
DECLARE_CLASS_CHECKERS(KVMPICClass, KVM_PIC,
|
||||
TYPE_KVM_I8259)
|
||||
|
||||
/**
|
||||
* KVMPICClass:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue