mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -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
|
@ -36,7 +36,8 @@ typedef enum AUXReply AUXReply;
|
|||
|
||||
#define TYPE_AUXTOI2C "aux-to-i2c-bridge"
|
||||
typedef struct AUXTOI2CState AUXTOI2CState;
|
||||
#define AUXTOI2C(obj) OBJECT_CHECK(AUXTOI2CState, (obj), TYPE_AUXTOI2C)
|
||||
DECLARE_INSTANCE_CHECKER(AUXTOI2CState, AUXTOI2C,
|
||||
TYPE_AUXTOI2C)
|
||||
|
||||
enum AUXCommand {
|
||||
WRITE_I2C = 0,
|
||||
|
@ -57,7 +58,8 @@ enum AUXReply {
|
|||
};
|
||||
|
||||
#define TYPE_AUX_BUS "aux-bus"
|
||||
#define AUX_BUS(obj) OBJECT_CHECK(AUXBus, (obj), TYPE_AUX_BUS)
|
||||
DECLARE_INSTANCE_CHECKER(AUXBus, AUX_BUS,
|
||||
TYPE_AUX_BUS)
|
||||
|
||||
struct AUXBus {
|
||||
/* < private > */
|
||||
|
@ -76,8 +78,8 @@ struct AUXBus {
|
|||
};
|
||||
|
||||
#define TYPE_AUX_SLAVE "aux-slave"
|
||||
#define AUX_SLAVE(obj) \
|
||||
OBJECT_CHECK(AUXSlave, (obj), TYPE_AUX_SLAVE)
|
||||
DECLARE_INSTANCE_CHECKER(AUXSlave, AUX_SLAVE,
|
||||
TYPE_AUX_SLAVE)
|
||||
|
||||
struct AUXSlave {
|
||||
/* < private > */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue