[PATCH spice-common v2] RFC protocol: Allow to specify a surface will be streamed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This flag will allow the client to perform some optimisations
on output and buffering processing.
Old clients will ignore this additional flag.

Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
---
 spice.proto | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

Changes since v1:
- explain how to avoid having to add capabilities

diff --git a/spice.proto b/spice.proto
index 867ef9b..2e8e530 100644
--- a/spice.proto
+++ b/spice.proto
@@ -466,8 +466,13 @@ flags8 string_flags {
 
 flags32 surface_flags {
     /* Adding flags requires some caps check, since old clients only
-       treat the value as an enum and not as a flag (flag == PRIMARY) */
-    PRIMARY
+       treat the value as an enum and not as a flag (flag == PRIMARY).
+       Considering this was fixed by commit
+       5b6e3d1c16457c926322ce28d341af2e8d39efb5 in Aug 21 2013 is safe
+       to assume that if capabilities include SPICE_DISPLAY_CAP_MULTI_CODEC
+       we can use any flags */
+    PRIMARY,
+    STREAMING_MODE,
 };
 
 enum32 surface_fmt {
-- 
2.13.6

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]