mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
Use OBJECT_DECLARE_SIMPLE_TYPE when possible
This converts existing DECLARE_INSTANCE_CHECKER usage to OBJECT_DECLARE_SIMPLE_TYPE when possible. $ ./scripts/codeconverter/converter.py -i \ --pattern=AddObjectDeclareSimpleType $(git grep -l '' -- '*.[ch]') Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Acked-by: Paul Durrant <paul@xen.org> Message-Id: <20200916182519.415636-6-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
a489d1951c
commit
8063396bf3
505 changed files with 609 additions and 1795 deletions
|
@ -33,7 +33,6 @@
|
|||
|
||||
#define ADB_MAX_OUT_LEN 16
|
||||
|
||||
typedef struct ADBBusState ADBBusState;
|
||||
typedef struct ADBDevice ADBDevice;
|
||||
|
||||
/* buf = NULL means polling */
|
||||
|
@ -65,8 +64,7 @@ struct ADBDeviceClass {
|
|||
};
|
||||
|
||||
#define TYPE_ADB_BUS "apple-desktop-bus"
|
||||
DECLARE_INSTANCE_CHECKER(ADBBusState, ADB_BUS,
|
||||
TYPE_ADB_BUS)
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(ADBBusState, ADB_BUS)
|
||||
|
||||
#define ADB_STATUS_BUSTIMEOUT 0x1
|
||||
#define ADB_STATUS_POLLREPLY 0x2
|
||||
|
|
|
@ -12,9 +12,7 @@
|
|||
#include "qom/object.h"
|
||||
|
||||
#define TYPE_I8042 "i8042"
|
||||
typedef struct ISAKBDState ISAKBDState;
|
||||
DECLARE_INSTANCE_CHECKER(ISAKBDState, I8042,
|
||||
TYPE_I8042)
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(ISAKBDState, I8042)
|
||||
|
||||
#define I8042_A20_LINE "a20"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue