[Spice-devel] protocol: Group the VDAgent clipboard message definitions

Submitted by Francois Gouget on Oct. 17, 2016, 1:36 p.m.

Details

Message ID E1bw85K-0006DL-3h@amboise
State Accepted
Headers show
Series "protocol: Group the VDAgent clipboard message definitions" ( rev: 1 ) in Spice

Not browsing as part of any series.

Commit Message

Francois Gouget Oct. 17, 2016, 1:36 p.m.
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
---
 spice/vd_agent.h | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

Patch hide | download patch | download mbox

diff --git a/spice/vd_agent.h b/spice/vd_agent.h
index 445b458..c49f596 100644
--- a/spice/vd_agent.h
+++ b/spice/vd_agent.h
@@ -180,6 +180,12 @@  enum {
     VD_AGENT_CLIPBOARD_IMAGE_JPG,  /* optional */
 };
 
+enum {
+    VD_AGENT_CLIPBOARD_SELECTION_CLIPBOARD = 0,
+    VD_AGENT_CLIPBOARD_SELECTION_PRIMARY,
+    VD_AGENT_CLIPBOARD_SELECTION_SECONDARY,
+};
+
 typedef struct SPICE_ATTR_PACKED VDAgentClipboardGrab {
 #if 0 /* VD_AGENT_CAP_CLIPBOARD_SELECTION */
     uint8_t selection;
@@ -231,12 +237,6 @@  enum {
     VD_AGENT_END_CAP,
 };
 
-enum {
-    VD_AGENT_CLIPBOARD_SELECTION_CLIPBOARD = 0,
-    VD_AGENT_CLIPBOARD_SELECTION_PRIMARY,
-    VD_AGENT_CLIPBOARD_SELECTION_SECONDARY,
-};
-
 typedef struct SPICE_ATTR_PACKED VDAgentAnnounceCapabilities {
     uint32_t  request;
     uint32_t caps[0];

Comments

> 
> Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
> ---
>  spice/vd_agent.h | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/spice/vd_agent.h b/spice/vd_agent.h
> index 445b458..c49f596 100644
> --- a/spice/vd_agent.h
> +++ b/spice/vd_agent.h
> @@ -180,6 +180,12 @@ enum {
>      VD_AGENT_CLIPBOARD_IMAGE_JPG,  /* optional */
>  };
>  
> +enum {
> +    VD_AGENT_CLIPBOARD_SELECTION_CLIPBOARD = 0,
> +    VD_AGENT_CLIPBOARD_SELECTION_PRIMARY,
> +    VD_AGENT_CLIPBOARD_SELECTION_SECONDARY,
> +};
> +
>  typedef struct SPICE_ATTR_PACKED VDAgentClipboardGrab {
>  #if 0 /* VD_AGENT_CAP_CLIPBOARD_SELECTION */
>      uint8_t selection;
> @@ -231,12 +237,6 @@ enum {
>      VD_AGENT_END_CAP,
>  };
>  
> -enum {
> -    VD_AGENT_CLIPBOARD_SELECTION_CLIPBOARD = 0,
> -    VD_AGENT_CLIPBOARD_SELECTION_PRIMARY,
> -    VD_AGENT_CLIPBOARD_SELECTION_SECONDARY,
> -};
> -
>  typedef struct SPICE_ATTR_PACKED VDAgentAnnounceCapabilities {
>      uint32_t  request;
>      uint32_t caps[0];

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

Frediano