mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
Use OBJECT_DECLARE_SIMPLE_TYPE when possible
Generated using: $ ./scripts/codeconverter/converter.py -i \ --pattern=ObjectDeclareType $(git grep -l '' -- '*.[ch]') Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Message-Id: <20200831210740.126168-19-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
c821774a3b
commit
1ff5adfa5b
11 changed files with 22 additions and 55 deletions
|
|
@ -31,8 +31,8 @@ static bool linux_is_button(unsigned int lnx)
|
|||
}
|
||||
|
||||
#define TYPE_INPUT_LINUX "input-linux"
|
||||
OBJECT_DECLARE_TYPE(InputLinux, InputLinuxClass,
|
||||
input_linux, INPUT_LINUX)
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(InputLinux, input_linux,
|
||||
INPUT_LINUX, ObjectClass)
|
||||
|
||||
|
||||
struct InputLinux {
|
||||
|
|
@ -65,9 +65,6 @@ struct InputLinux {
|
|||
QTAILQ_ENTRY(InputLinux) next;
|
||||
};
|
||||
|
||||
struct InputLinuxClass {
|
||||
ObjectClass parent_class;
|
||||
};
|
||||
|
||||
static QTAILQ_HEAD(, InputLinux) inputs = QTAILQ_HEAD_INITIALIZER(inputs);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue