mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
ui: add an optional get_flags callback to GraphicHwOps
Those flags can be used to express different requirements for the display or other needs. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20210204105232.834642-12-marcandre.lureau@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
ff64d44fb8
commit
a7dfbe289e
4 changed files with 42 additions and 0 deletions
|
@ -368,7 +368,16 @@ static inline void console_write_ch(console_ch_t *dest, uint32_t ch)
|
|||
*dest = ch;
|
||||
}
|
||||
|
||||
enum {
|
||||
GRAPHIC_FLAGS_NONE = 0,
|
||||
/* require a console/display with GL callbacks */
|
||||
GRAPHIC_FLAGS_GL = 1 << 0,
|
||||
/* require a console/display with DMABUF import */
|
||||
GRAPHIC_FLAGS_DMABUF = 1 << 1,
|
||||
};
|
||||
|
||||
typedef struct GraphicHwOps {
|
||||
int (*get_flags)(void *opaque); /* optional, default 0 */
|
||||
void (*invalidate)(void *opaque);
|
||||
void (*gfx_update)(void *opaque);
|
||||
bool gfx_update_async; /* if true, calls graphic_hw_update_done() */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue