[Spice-devel] [PATCH spice-common] Rename SpiceHead::id to monitor_id

Frediano Ziglio fziglio at redhat.com
Tue Jul 17 15:34:23 UTC 2018


> 
> The id is called 'monitor_id' throughout the rest of the code, rename
> for clarity and consistency.
> 
> Signed-off-by: Lukáš Hrázký <lhrazky at redhat.com>
> ---
>  common/messages.h | 2 +-
>  spice.proto       | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/common/messages.h b/common/messages.h
> index 4fc03d4..55de76e 100644
> --- a/common/messages.h
> +++ b/common/messages.h
> @@ -615,7 +615,7 @@ typedef struct SpiceMsgcSmartcard {
>  #endif
>  
>  typedef struct SpiceMsgDisplayHead {
> -    uint32_t id;
> +    uint32_t monitor_id;
>      uint32_t surface_id;
>      uint32_t width;
>      uint32_t height;
> diff --git a/spice.proto b/spice.proto
> index e678ef8..fbc31f7 100644
> --- a/spice.proto
> +++ b/spice.proto
> @@ -709,7 +709,7 @@ struct StreamDataHeader {
>  };
>  
>  struct Head {
> -    uint32 id;
> +    uint32 monitor_id;
>      uint32 surface_id;
>      uint32 width;
>      uint32 height;

Acked-by: Frediano Ziglio <fziglio at redhat.com>

This rename was already discussed in the ML.

Frediano


More information about the Spice-devel mailing list