Re: [Qemu-devel] [PATCH] console/gtk: add qemu_console_get_label

2015-02-18 Thread Gerd Hoffmann
Hi, > Thanks for this code. Is this how I should display the Serial console? > void myDisplaySerialConsole() > { > QemuConsole *con; > char *name; > int index = 0; > > con = qemu_console_lookup_by_index(0); > while(con != NULL) { > name = qemu_console_get_label

Re: [Qemu-devel] [PATCH] console/gtk: add qemu_console_get_label

2015-02-17 Thread Programmingkid
On Feb 17, 2015, at 4:44 AM, Gerd Hoffmann wrote: > Add a new function to get a nice label for a given QemuConsole. > Drop the labeling code in gtk.c and use the new function instead. > > Signed-off-by: Gerd Hoffmann > --- > include/ui/console.h | 1 + > ui/console.c | 15 ++