diff options
author | Pavel Grunt <pgrunt@redhat.com> | 2016-09-08 15:57:20 +0200 |
---|---|---|
committer | Pavel Grunt <pgrunt@redhat.com> | 2016-09-08 22:16:29 +0200 |
commit | 88e4fd99821483e2ca2f7659058c33e9791f6496 (patch) | |
tree | 5749cfbf988fbb688554270f1bd0f79708abbc28 | |
parent | d83bf4afd0ecea88d7e7fc1641d62e8fa3e08047 (diff) |
proto: Add agent features messageagentfeatures
The message is sent by server to the client to indicate
which agent features are enabled or disabled by using flags.
If a flag is set, then the corresponding feature is enabled.
The message currently supports info about copy & paste and file transfer.
Related:
https://bugzilla.redhat.com/show_bug.cgi?id=1373725
-rw-r--r-- | common/messages.h | 4 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | spice.proto | 9 |
3 files changed, 14 insertions, 1 deletions
diff --git a/common/messages.h b/common/messages.h index c787166..3f4abc1 100644 --- a/common/messages.h +++ b/common/messages.h @@ -99,6 +99,10 @@ typedef struct SpiceMsgMainMigrateBeginSeamless { uint32_t src_mig_version; } SpiceMsgMainMigrateBeginSeamless; +typedef struct SpiceMsgMainAgentFeatures { + uint32_t flags; +} SpiceMsgMainAgentFeatures; + typedef struct SpiceMsgcMainMigrateDstDoSeamless { uint32_t src_version; } SpiceMsgcMainMigrateDstDoSeamless; diff --git a/configure.ac b/configure.ac index c3ad5a4..c0e49b7 100644 --- a/configure.ac +++ b/configure.ac @@ -28,7 +28,7 @@ AM_PROG_CC_C_O SPICE_CHECK_SYSDEPS # Checks for libraries -PKG_CHECK_MODULES([PROTOCOL], [spice-protocol >= 0.12.12]) +PKG_CHECK_MODULES([PROTOCOL], [spice-protocol >= 0.12.13]) SPICE_CHECK_PYTHON_MODULES() diff --git a/spice.proto b/spice.proto index 3742ef1..8497997 100644 --- a/spice.proto +++ b/spice.proto @@ -226,6 +226,11 @@ struct DstInfo { uint8 *cert_subject_data[cert_subject_size] @zero_terminated @marshall; } @ctype(SpiceMigrationDstInfo); +flags32 agent_features_flags { + COPY_PASTE, + FILE_TRANSFER +} @prefix(SPICE_AGENT_FEATURE_); + channel MainChannel : BaseChannel { server: message { @@ -303,6 +308,10 @@ channel MainChannel : BaseChannel { Empty migrate_dst_seamless_ack; Empty migrate_dst_seamless_nack; + message { + agent_features_flags flags; + } agent_features; + client: message { uint64 cache_size; |