summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Grunt <pgrunt@redhat.com>2016-09-07 15:58:29 +0200
committerPavel Grunt <pgrunt@redhat.com>2016-09-15 11:20:54 +0200
commitf9b671ac525bfbf1360825a8875d56e84c31265b (patch)
tree864189c5bc9d47c5a312199cfb4112e2429aa6ae
parentcd38cc13e589d58ca467b58d471b72064f58c232 (diff)
Add support for reporting availability of agent featuresagentfeatures
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
-rw-r--r--spice/enums.h8
1 files changed, 8 insertions, 0 deletions
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
};