[PATCH spice-protocol 2/2] Add support for reporting availability of agent features

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

 



Some agent features can be disabled on the server:
 * Copy & Paste
 * File transfer

Add a message to give this info to the client, so it doesn't
try to use them.

Related:
https://bugzilla.redhat.com/show_bug.cgi?id=1373725
---
 spice/enums.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/spice/enums.h b/spice/enums.h
index 1d0c2db..dc68fce 100644
--- a/spice/enums.h
+++ b/spice/enums.h
@@ -128,6 +128,13 @@ typedef enum SpicePubkeyType {
     SPICE_PUBKEY_TYPE_ENUM_END
 } SpicePubkeyType;
 
+typedef enum SpiceAgentFeaturesFlags {
+    SPICE_AGENT_FEATURE_COPY_PASTE = (1 << 0),
+    SPICE_AGENT_FEATURE_FILE_TRANSFER = (1 << 1),
+
+    SPICE_AGENT_FEATURES_FLAGS_MASK = 0x3
+} SpiceAgentFeaturesFlags;
+
 typedef enum SpiceClipType {
     SPICE_CLIP_TYPE_NONE,
     SPICE_CLIP_TYPE_RECTS,
@@ -466,6 +473,7 @@ enum {
     SPICE_MSG_MAIN_MIGRATE_BEGIN_SEAMLESS,
     SPICE_MSG_MAIN_MIGRATE_DST_SEAMLESS_ACK,
     SPICE_MSG_MAIN_MIGRATE_DST_SEAMLESS_NACK,
+    SPICE_MSG_MAIN_AGENT_FEATURES,
 
     SPICE_MSG_END_MAIN
 };
-- 
2.10.0

_______________________________________________
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]