qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] cocoa.m: Adds console items to the view menu


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] [PATCH] cocoa.m: Adds console items to the view menu
Date: Fri, 13 Feb 2015 08:45:51 +0100

  Hi,

> We're going to need to automatically create and update
> the menu entries based on which consoles get created
> if we want this to work properly, I think. Gerd, any
> suggestions?  Is there a hook for "list of active
> consoles has changed"?

No.  consoles are not hotpluggable.

> What's the right way to get
> the printable name of a console?

gd_vc_gfx_init() has code for gfx consoles (qemu_console_is_graphic() ==
true).

There is nothing for text consoles.

Guess we should create a qemu_console_get_label() helper function in
ui/console.c, then move the code from gd_vc_gfx_init() to that place,
and for text consoles use QemuConsole->chr->label.

cheers,
  Gerd





reply via email to

[Prev in Thread] Current Thread [Next in Thread]