mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -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
|
@ -44,7 +44,8 @@ typedef bool ADBDeviceHasData(ADBDevice *d);
|
|||
|
||||
#define TYPE_ADB_DEVICE "adb-device"
|
||||
typedef struct ADBDeviceClass ADBDeviceClass;
|
||||
#define ADB_DEVICE(obj) OBJECT_CHECK(ADBDevice, (obj), TYPE_ADB_DEVICE)
|
||||
DECLARE_OBJ_CHECKERS(ADBDevice, ADBDeviceClass,
|
||||
ADB_DEVICE, TYPE_ADB_DEVICE)
|
||||
|
||||
struct ADBDevice {
|
||||
/*< private >*/
|
||||
|
@ -55,10 +56,6 @@ struct ADBDevice {
|
|||
int handler;
|
||||
};
|
||||
|
||||
#define ADB_DEVICE_CLASS(cls) \
|
||||
OBJECT_CLASS_CHECK(ADBDeviceClass, (cls), TYPE_ADB_DEVICE)
|
||||
#define ADB_DEVICE_GET_CLASS(obj) \
|
||||
OBJECT_GET_CLASS(ADBDeviceClass, (obj), TYPE_ADB_DEVICE)
|
||||
|
||||
struct ADBDeviceClass {
|
||||
/*< private >*/
|
||||
|
@ -70,7 +67,8 @@ struct ADBDeviceClass {
|
|||
};
|
||||
|
||||
#define TYPE_ADB_BUS "apple-desktop-bus"
|
||||
#define ADB_BUS(obj) OBJECT_CHECK(ADBBusState, (obj), TYPE_ADB_BUS)
|
||||
DECLARE_INSTANCE_CHECKER(ADBBusState, ADB_BUS,
|
||||
TYPE_ADB_BUS)
|
||||
|
||||
#define ADB_STATUS_BUSTIMEOUT 0x1
|
||||
#define ADB_STATUS_POLLREPLY 0x2
|
||||
|
|
|
@ -13,7 +13,8 @@
|
|||
|
||||
#define TYPE_I8042 "i8042"
|
||||
typedef struct ISAKBDState ISAKBDState;
|
||||
#define I8042(obj) OBJECT_CHECK(ISAKBDState, (obj), TYPE_I8042)
|
||||
DECLARE_INSTANCE_CHECKER(ISAKBDState, I8042,
|
||||
TYPE_I8042)
|
||||
|
||||
#define I8042_A20_LINE "a20"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue