mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
cocoa: switch over to new display registry
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 20180301100547.18962-4-kraxel@redhat.com
This commit is contained in:
parent
5ee1718f92
commit
5013b9e46a
3 changed files with 13 additions and 16 deletions
14
ui/cocoa.m
14
ui/cocoa.m
|
@ -1683,7 +1683,7 @@ static void addRemovableDevicesMenuItems(void)
|
|||
qapi_free_BlockInfoList(pointerToFree);
|
||||
}
|
||||
|
||||
void cocoa_display_init(DisplayState *ds, DisplayOptions *opts)
|
||||
static void cocoa_display_init(DisplayState *ds, DisplayOptions *opts)
|
||||
{
|
||||
COCOA_DEBUG("qemu_cocoa: cocoa_display_init\n");
|
||||
|
||||
|
@ -1713,3 +1713,15 @@ void cocoa_display_init(DisplayState *ds, DisplayOptions *opts)
|
|||
*/
|
||||
addRemovableDevicesMenuItems();
|
||||
}
|
||||
|
||||
static QemuDisplay qemu_display_cocoa = {
|
||||
.type = DISPLAY_TYPE_COCOA,
|
||||
.init = cocoa_display_init,
|
||||
};
|
||||
|
||||
static void register_cocoa(void)
|
||||
{
|
||||
qemu_display_register(&qemu_display_cocoa);
|
||||
}
|
||||
|
||||
type_init(register_cocoa);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue