diff options
Diffstat (limited to 'gtk/spice-channel-priv.h')
-rw-r--r-- | gtk/spice-channel-priv.h | 33 |
1 files changed, 21 insertions, 12 deletions
diff --git a/gtk/spice-channel-priv.h b/gtk/spice-channel-priv.h index 0a84955..b3377e4 100644 --- a/gtk/spice-channel-priv.h +++ b/gtk/spice-channel-priv.h @@ -33,25 +33,33 @@ enum spice_channel_state { SPICE_CHANNEL_STATE_READY, }; +struct main_channel { + enum SpiceMouseMode mouse_mode; +}; + typedef struct display_surface { - RingItem link; - int surface_id; - bool primary; - enum SpiceSurfaceFmt format; - int width, height, stride, size; - int shmid; - uint8_t *data; - SpiceCanvas *canvas; + RingItem link; + int surface_id; + bool primary; + enum SpiceSurfaceFmt format; + int width, height, stride, size; + int shmid; + uint8_t *data; + SpiceCanvas *canvas; } display_surface; struct display_channel { - Ring surfaces; + Ring surfaces; }; struct cursor_channel { }; struct inputs_channel { + int bs; + int dx, dy; + unsigned int x, y, dpy; + int motion_count; }; struct spice_channel { @@ -75,6 +83,7 @@ struct spice_channel { spice_msg_in *msg_in; union { + struct main_channel main; struct display_channel display; struct cursor_channel cursor; struct inputs_channel inputs; @@ -82,9 +91,9 @@ struct spice_channel { }; enum { -#if 0 - SPICE_CHANNEL_STATUS_???, -#endif + SPICE_CHANNEL_EVENT, + + SPICE_MAIN_MOUSE_MODE, SPICE_DISPLAY_PRIMARY_CREATE, SPICE_DISPLAY_PRIMARY_DESTROY, |