input-linux: switch over to -object
commit0e066b2cc50de4b4d5ef3c9b5a39eddc3f98d060
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 11 Mar 2016 07:38:20 +0000 (11 08:38 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 24 Mar 2016 06:58:20 +0000 (24 07:58 +0100)
tree66939d1c82eb1da004f8e8daf646e407dca1464e
parent2538039f2c26d66053426fb547e4f25e669baf62
input-linux: switch over to -object

This patches makes input-linux use -object instead of a new command line
switch.  So, instead of the switch ...

    -input-linux /dev/input/event$nr

... you must create an object this way:

    -object input-linux,id=$name,evdev=/dev/input/event$nr

Bonus is that you can hot-add and hot-remove them via monitor now.

Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1457681901-30916-1-git-send-email-kraxel@redhat.com
qemu-options.hx
ui/input-linux.c
vl.c