[Spice-devel] [PATCH spice-protocol] Add name & uuid messages on main channel

Christophe Fergeau cfergeau at redhat.com
Fri Mar 2 05:10:10 PST 2012


On Fri, Mar 02, 2012 at 01:46:58PM +0100, Marc-André Lureau wrote:
> This allows the client to identify a Spice server. This can be useful
> to associate data/configuration with this particular server.
> 
> The corresponding main channel messages are:
> 
>     message {
> 	uint8 uuid[16];
>     } uuid;
> 
>     message {
> 	uint32 name_len;
> 	uint8 name[name_len]; /* should be \0 terminated */
>     } name;

Do we really need 2 separate messages for this?

Christophe

> 
> Those messages are sent by the server only if the corresponding
> capabilities SPICE_MAIN_CAP_NAME, and SPICE_MAIN_CAP_UUID are
> available on the client.
> ---
>  spice/enums.h    |    2 ++
>  spice/protocol.h |    2 ++
>  2 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/spice/enums.h b/spice/enums.h
> index 7325180..d2dbfd0 100644
> --- a/spice/enums.h
> +++ b/spice/enums.h
> @@ -367,6 +367,8 @@ enum {
>      SPICE_MSG_MAIN_AGENT_TOKEN,
>      SPICE_MSG_MAIN_MIGRATE_SWITCH_HOST,
>      SPICE_MSG_MAIN_MIGRATE_END,
> +    SPICE_MSG_MAIN_NAME,
> +    SPICE_MSG_MAIN_UUID,
>  
>      SPICE_MSG_END_MAIN
>  };
> diff --git a/spice/protocol.h b/spice/protocol.h
> index 5c7f286..ad38726 100644
> --- a/spice/protocol.h
> +++ b/spice/protocol.h
> @@ -119,6 +119,8 @@ enum {
>  
>  enum {
>      SPICE_MAIN_CAP_SEMI_SEAMLESS_MIGRATE,
> +    SPICE_MAIN_CAP_NAME,
> +    SPICE_MAIN_CAP_UUID,
>  };
>  
>  #include <spice/end-packed.h>
> -- 
> 1.7.7.6
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20120302/2936ae7c/attachment.pgp>


More information about the Spice-devel mailing list