[Spice-devel] [PATCH 1/4] record: Support cursor commands
Jonathon Jongsma
jjongsma at redhat.com
Fri Jun 3 19:53:16 UTC 2016
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 at redhat.com>
> ---
> 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 at redhat.com>
More information about the Spice-devel
mailing list