summaryrefslogtreecommitdiff
path: root/kvmd/apps/vnc/rfb/encodings.py
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-11-02 03:23:37 +0300
committerMaxim Devaev <[email protected]>2022-11-03 15:07:06 +0300
commit08241e92559cc037da4891e8c03b49b800fe43c1 (patch)
treed0221e1951a63d0ad761ea9abd172076ed6e8d93 /kvmd/apps/vnc/rfb/encodings.py
parentc57928a0f16ea4b5a1052ca00d616e56da82a274 (diff)
Implemented VNC ContinuousUpdates
Diffstat (limited to 'kvmd/apps/vnc/rfb/encodings.py')
-rw-r--r--kvmd/apps/vnc/rfb/encodings.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/kvmd/apps/vnc/rfb/encodings.py b/kvmd/apps/vnc/rfb/encodings.py
index e153b5e8..597e3a92 100644
--- a/kvmd/apps/vnc/rfb/encodings.py
+++ b/kvmd/apps/vnc/rfb/encodings.py
@@ -31,6 +31,7 @@ class RfbEncodings:
RENAME = -307 # DesktopName Pseudo-encoding
LEDS_STATE = -261 # QEMU LED State Pseudo-encoding
EXT_KEYS = -258 # QEMU Extended Key Events Pseudo-encoding
+ CONT_UPDATES = -313 # ContinuousUpdates Pseudo-encoding
TIGHT = 7
TIGHT_JPEG_QUALITIES = dict(zip( # JPEG Quality Level Pseudo-encoding
@@ -53,6 +54,7 @@ class RfbClientEncodings: # pylint: disable=too-many-instance-attributes
has_rename: bool = dataclasses.field(default=False, metadata=_make_meta(RfbEncodings.RENAME)) # noqa: E224
has_leds_state: bool = dataclasses.field(default=False, metadata=_make_meta(RfbEncodings.LEDS_STATE)) # noqa: E224
has_ext_keys: bool = dataclasses.field(default=False, metadata=_make_meta(RfbEncodings.EXT_KEYS)) # noqa: E224
+ has_cont_updates: bool = dataclasses.field(default=False, metadata=_make_meta(RfbEncodings.CONT_UPDATES)) # noqa: E224
has_tight: bool = dataclasses.field(default=False, metadata=_make_meta(RfbEncodings.TIGHT)) # noqa: E224
tight_jpeg_quality: int = dataclasses.field(default=0, metadata=_make_meta(frozenset(RfbEncodings.TIGHT_JPEG_QUALITIES))) # noqa: E224