mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00: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:
@@ -33,12 +33,8 @@ static bool linux_is_button(unsigned int lnx)
|
||||
#define TYPE_INPUT_LINUX "input-linux"
|
||||
typedef struct InputLinux InputLinux;
|
||||
typedef struct InputLinuxClass InputLinuxClass;
|
||||
#define INPUT_LINUX(obj) \
|
||||
OBJECT_CHECK(InputLinux, (obj), TYPE_INPUT_LINUX)
|
||||
#define INPUT_LINUX_GET_CLASS(obj) \
|
||||
OBJECT_GET_CLASS(InputLinuxClass, (obj), TYPE_INPUT_LINUX)
|
||||
#define INPUT_LINUX_CLASS(klass) \
|
||||
OBJECT_CLASS_CHECK(InputLinuxClass, (klass), TYPE_INPUT_LINUX)
|
||||
DECLARE_OBJ_CHECKERS(InputLinux, InputLinuxClass,
|
||||
INPUT_LINUX, TYPE_INPUT_LINUX)
|
||||
|
||||
|
||||
struct InputLinux {
|
||||
|
||||
Reference in New Issue
Block a user