mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
qapi: Mechanically convert FOO_lookup[...] to FOO_str(...)
Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <1503564371-26090-14-git-send-email-armbru@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
5b5f825d44
commit
977c736f80
45 changed files with 121 additions and 121 deletions
6
ui/vnc.c
6
ui/vnc.c
|
@ -131,7 +131,7 @@ static void vnc_init_basic_info(SocketAddress *addr,
|
|||
case SOCKET_ADDRESS_TYPE_VSOCK:
|
||||
case SOCKET_ADDRESS_TYPE_FD:
|
||||
error_setg(errp, "Unsupported socket address type %s",
|
||||
SocketAddressType_lookup[addr->type]);
|
||||
SocketAddressType_str(addr->type));
|
||||
break;
|
||||
default:
|
||||
abort();
|
||||
|
@ -416,7 +416,7 @@ VncInfo *qmp_query_vnc(Error **errp)
|
|||
case SOCKET_ADDRESS_TYPE_VSOCK:
|
||||
case SOCKET_ADDRESS_TYPE_FD:
|
||||
error_setg(errp, "Unsupported socket address type %s",
|
||||
SocketAddressType_lookup[addr->type]);
|
||||
SocketAddressType_str(addr->type));
|
||||
goto out_error;
|
||||
default:
|
||||
abort();
|
||||
|
@ -1839,7 +1839,7 @@ static void vnc_release_modifiers(VncState *vs)
|
|||
|
||||
static const char *code2name(int keycode)
|
||||
{
|
||||
return QKeyCode_lookup[qemu_input_key_number_to_qcode(keycode)];
|
||||
return QKeyCode_str(qemu_input_key_number_to_qcode(keycode));
|
||||
}
|
||||
|
||||
static void key_event(VncState *vs, int down, uint32_t sym)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue