diff options
author | Elie Tournier <tournier.elie@gmail.com> | 2018-04-13 14:58:40 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2018-04-27 09:51:40 +0200 |
commit | 62f27922b3f1e0253a6755d2c711cd0bc1e79f18 (patch) | |
tree | f91fd6d9f90b8e722e1151f633b3d62b4fbc8a8f /qapi/ui.json | |
parent | 1bc3117abad28d6465ecdb2c944b22943df0e4f3 (diff) | |
download | qemu-62f27922b3f1e0253a6755d2c711cd0bc1e79f18.zip qemu-62f27922b3f1e0253a6755d2c711cd0bc1e79f18.tar.gz qemu-62f27922b3f1e0253a6755d2c711cd0bc1e79f18.tar.bz2 |
qapi: Parameter gl of DisplayType now accept an enum
v2: Rebase on top of master
v3: Fix the json format (Eric Blake)
Fix a comparison issue (Gerd Hoffmann)
Signed-off-by: Elie Tournier <elie.tournier@collabora.com>
Message-id: 20180413135842.21325-2-tournier.elie@gmail.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'qapi/ui.json')
-rw-r--r-- | qapi/ui.json | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/qapi/ui.json b/qapi/ui.json index 5d01ad4..3ad7835 100644 --- a/qapi/ui.json +++ b/qapi/ui.json @@ -1019,6 +1019,24 @@ { 'struct' : 'DisplayGTK', 'data' : { '*grab-on-hover' : 'bool' } } + ## + # @DisplayGLMode: + # + # Display OpenGL mode. + # + # @off: Disable OpenGL (default). + # @on: Use OpenGL, pick context type automatically. + # Would better be named 'auto' but is called 'on' for backward + # compatibility with bool type. + # @core: Use OpenGL with Core (desktop) Context. + # @es: Use OpenGL with ES (embedded systems) Context. + # + # Since: 2.13 + # + ## + { 'enum' : 'DisplayGLMode', + 'data' : [ 'off', 'on', 'core', 'es' ] } + ## # @DisplayType: # @@ -1048,7 +1066,7 @@ 'base' : { 'type' : 'DisplayType', '*full-screen' : 'bool', '*window-close' : 'bool', - '*gl' : 'bool' }, + '*gl' : 'DisplayGLMode' }, 'discriminator' : 'type', 'data' : { 'default' : 'DisplayNoOpts', 'none' : 'DisplayNoOpts', |