Re: [PATCH 1/4] record: Support cursor commands

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2016-06-03 at 10:59 +0100, Frediano Ziglio wrote:
> Use red_record_cursor_cmd to be able to record cursor commands.
> 
> Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
> ---
>  server/red-record-qxl.c | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/server/red-record-qxl.c b/server/red-record-qxl.c
> index 39d6639..9b7d2af 100644
> --- a/server/red-record-qxl.c
> +++ b/server/red-record-qxl.c
> @@ -763,8 +763,8 @@ static void red_record_cursor(FILE *fd, RedMemSlotInfo
> *slots, int group_id,
>                                     &qxl->chunk);
>  }
>  
> -void red_record_cursor_cmd(FILE *fd, RedMemSlotInfo *slots, int group_id,
> -                           QXLPHYSICAL addr)
> +static void red_record_cursor_cmd(FILE *fd, RedMemSlotInfo *slots, int
> group_id,
> +                                  QXLPHYSICAL addr)

This change isn't strictly related. On the other hand, it's so small I don't
know if it makes sense to split it or not. Your choice.


>  {
>      QXLCursorCmd *qxl;
>      int error;
> @@ -834,6 +834,9 @@ void red_record_qxl_command(RedRecord *record,
> RedMemSlotInfo *slots,
>      case QXL_CMD_SURFACE:
>          red_record_surface_cmd(fd, slots, ext_cmd.group_id,
> ext_cmd.cmd.data);
>          break;
> +    case QXL_CMD_CURSOR:
> +        red_record_cursor_cmd(fd, slots, ext_cmd.group_id, ext_cmd.cmd.data);
> +        break;
>      }
>  }
>  

Acked-by: Jonathon Jongsma <jjongsma@xxxxxxxxxx>
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]