[Spice-devel] [PATCH 1/4] record: Support cursor commands
Frediano Ziglio
fziglio at redhat.com
Fri Jun 3 09:59:54 UTC 2016
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)
{
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;
}
}
--
2.7.4
More information about the Spice-devel
mailing list