qemu-e2k/ui
Markus Armbruster a6c76285f2 io vnc sockets: Clean up SocketAddressKind switches
We have quite a few switches over SocketAddressKind.  Some have case
labels for all enumeration values, others rely on a default label.
Some abort when the value isn't a valid SocketAddressKind, others
report an error then.

Unify as follows.  Always provide case labels for all enumeration
values, to clarify intent.  Abort when the value isn't a valid
SocketAddressKind, because the program state is messed up then.

Improve a few error messages while there.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: 1490895797-29094-4-git-send-email-armbru@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
2017-04-03 17:11:39 +02:00
..
shader
cocoa.m ui/cocoa.m: add toast file support 2017-03-14 15:09:56 +00:00
console-gl.c
console.c ui/console: use exclusive mechanism directly 2017-03-28 10:52:45 +01:00
curses_keys.h
curses.c curses: Fix compiler warnings (Mingw-w64 redefinition of macro KEY_EVENT) 2017-01-10 08:14:20 +01:00
cursor_hidden.xpm
cursor_left_ptr.xpm
cursor.c
egl-context.c
egl-helpers.c ui/egl-helpers: fix egl 1.5 display init 2017-03-27 12:14:45 +02:00
gtk-egl.c gtk-egl: add scanout_disable support 2017-02-27 16:15:29 +01:00
gtk-gl-area.c console: rename dpy_gl_scanout to dpy_gl_scanout_texture 2017-02-27 16:15:28 +01:00
gtk.c ui: Use XkbGetMap and XkbGetNames instead of XkbGetKeyboard 2017-02-27 16:19:47 +01:00
input-keymap.c ps2: Fix lost scancodes by recent changes 2017-01-10 08:14:20 +01:00
input-legacy.c
input-linux.c Fix input-linux reading from device 2017-04-03 11:44:58 +02:00
input.c
keymaps.c
keymaps.h
Makefile.objs add opengl_cflags to QEMU_CFLAGS 2017-03-21 10:25:01 +00:00
qemu-pixman.c
qemu-x509.h
sdl2-2d.c
sdl2-gl.c sdl2: add scanout_disable support 2017-02-27 16:15:29 +01:00
sdl2-input.c
sdl2-keymap.h
sdl2.c sdl2: add scanout_disable support 2017-02-27 16:15:29 +01:00
sdl_keysym.h
sdl_zoom_template.h
sdl_zoom.c
sdl_zoom.h
sdl.c ui: Use XkbGetMap and XkbGetNames instead of XkbGetKeyboard 2017-02-27 16:19:47 +01:00
shader.c
spice-core.c spice: add display & head options 2017-02-27 16:21:23 +01:00
spice-display.c spice: add display & head options 2017-02-27 16:21:23 +01:00
spice-input.c
trace-events
vgafont.h
vnc_keysym.h
vnc-auth-sasl.c
vnc-auth-sasl.h
vnc-auth-vencrypt.c io: change the QIOTask callback signature 2017-01-23 15:32:18 +00:00
vnc-auth-vencrypt.h
vnc-enc-hextile-template.h
vnc-enc-hextile.c
vnc-enc-tight.c ui/vnc-enc-tight: remove switch and have single return 2016-09-28 12:55:09 +02:00
vnc-enc-tight.h
vnc-enc-zlib.c
vnc-enc-zrle-template.c
vnc-enc-zrle.c
vnc-enc-zrle.h
vnc-enc-zywrle-template.c
vnc-enc-zywrle.h
vnc-jobs.c ui/vnc: Drop unused vnc_has_job() and vnc_jobs_clear() 2017-02-08 14:59:36 +01:00
vnc-jobs.h ui/vnc: Drop unused vnc_has_job() and vnc_jobs_clear() 2017-02-08 14:59:36 +01:00
vnc-palette.c
vnc-palette.h
vnc-ws.c io: change the QIOTask callback signature 2017-01-23 15:32:18 +00:00
vnc-ws.h
vnc.c io vnc sockets: Clean up SocketAddressKind switches 2017-04-03 17:11:39 +02:00
vnc.h ui: refactor VncDisplay to allow multiple listening sockets 2017-02-08 14:59:37 +01:00
x_keymap.c
x_keymap.h