console: add & use qemu_console_lookup_by_device_name
commitf2c1d54c186c400ec676ec4d29ea4b8bf440c054
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 12 Jan 2016 10:45:43 +0000 (12 11:45 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 1 Mar 2016 06:51:34 +0000 (1 07:51 +0100)
tree577d745cad7ac0a433b02a8a964438fa966076ae
parent071608b519adf62bc29c914343a21c5407ab1ac9
console: add & use qemu_console_lookup_by_device_name

We have two places needing this, and a third one will come shortly.
So factor things out into a helper function to reduce code duplication.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
include/ui/console.h
ui/console.c
ui/input.c
ui/vnc.c