> int qemu_console_get_width(QemuConsole *con, int fallback); > int qemu_console_get_height(QemuConsole *con, int fallback); > +/* Return the low-level window id for the first graphical console */ > +int qemu_graphic_console_get_window_id(void); > +void qemu_console_set_window_id(int index, int window_id);
Both qemu_console_{set,get}_window_id should have a QemuConsole *con argument, like the other ones. There is also no reason to limit this interface to graphic consoles. baum.c can use qemu_console_lookup_by_index() and qemu_console_is_graphic() to implement this logic (sorry, missed this on the first review). cheers, Gerd