diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2018-03-01 11:05:38 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2018-03-05 08:44:11 +0100 |
commit | b0766612d16da185a822636cf54214123e8038cf (patch) | |
tree | 21d23fe0aec6bd4bf7abeb8e3cd7db3469d2a049 /ui/curses.c | |
parent | 5013b9e46a72c96999fab1523f722ab58152c59a (diff) |
curses: switch over to new display registry
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20180301100547.18962-5-kraxel@redhat.com
Diffstat (limited to 'ui/curses.c')
-rw-r--r-- | ui/curses.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/ui/curses.c b/ui/curses.c index 597e47fd4a..59d819fd4d 100644 --- a/ui/curses.c +++ b/ui/curses.c @@ -435,7 +435,7 @@ static const DisplayChangeListenerOps dcl_ops = { .dpy_text_cursor = curses_cursor_position, }; -void curses_display_init(DisplayState *ds, DisplayOptions *opts) +static void curses_display_init(DisplayState *ds, DisplayOptions *opts) { #ifndef _WIN32 if (!isatty(1)) { @@ -456,3 +456,15 @@ void curses_display_init(DisplayState *ds, DisplayOptions *opts) invalidate = 1; } + +static QemuDisplay qemu_display_curses = { + .type = DISPLAY_TYPE_CURSES, + .init = curses_display_init, +}; + +static void register_curses(void) +{ + qemu_display_register(&qemu_display_curses); +} + +type_init(register_curses); |