aboutsummaryrefslogtreecommitdiff
path: root/ui/input-linux.c
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2020-08-31 17:07:40 -0400
committerEduardo Habkost <ehabkost@redhat.com>2020-09-09 09:27:11 -0400
commit1ff5adfa5bad905e36bb7eff5e436e26793f111f (patch)
treef41ea648acc321c7839b32ed2797946bce0a7ee3 /ui/input-linux.c
parentc821774a3b7ca991d684c3966171d8657f842aea (diff)
downloadqemu-1ff5adfa5bad905e36bb7eff5e436e26793f111f.zip
qemu-1ff5adfa5bad905e36bb7eff5e436e26793f111f.tar.gz
qemu-1ff5adfa5bad905e36bb7eff5e436e26793f111f.tar.bz2
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>
Diffstat (limited to 'ui/input-linux.c')
-rw-r--r--ui/input-linux.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/ui/input-linux.c b/ui/input-linux.c
index a95269c..5d501c8 100644
--- a/ui/input-linux.c
+++ b/ui/input-linux.c
@@ -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);