mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-09 16:27:53 +00:00
CursorChannel* arg in cursor_channel_client_new()
Instead of passing a CommonChannel* argument, use CursorChannel* since this function is only valid for CursorChannels. Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
parent
591f39e7cc
commit
30c9ff7a8f
@ -381,14 +381,13 @@ CursorChannel* cursor_channel_new(RedWorker *worker)
|
||||
return cursor;
|
||||
}
|
||||
|
||||
CursorChannelClient *cursor_channel_client_new(CommonChannel *common,
|
||||
RedClient *client, RedsStream *stream,
|
||||
CursorChannelClient* cursor_channel_client_new(CursorChannel *cursor, RedClient *client, RedsStream *stream,
|
||||
int mig_target,
|
||||
uint32_t *common_caps, int num_common_caps,
|
||||
uint32_t *caps, int num_caps)
|
||||
{
|
||||
CursorChannelClient *ccc =
|
||||
(CursorChannelClient*)common_channel_new_client(common,
|
||||
(CursorChannelClient*)common_channel_new_client(&cursor->common,
|
||||
sizeof(CursorChannelClient),
|
||||
client, stream,
|
||||
mig_target,
|
||||
|
||||
@ -87,7 +87,7 @@ CursorItem* cursor_item_new (RedCursorCmd *cmd, uint32_t gro
|
||||
void cursor_item_unref (QXLInstance *qxl, CursorItem *cursor);
|
||||
|
||||
|
||||
CursorChannelClient *cursor_channel_client_new(CommonChannel *common,
|
||||
CursorChannelClient* cursor_channel_client_new(CursorChannel *cursor,
|
||||
RedClient *client, RedsStream *stream,
|
||||
int mig_target,
|
||||
uint32_t *common_caps, int num_common_caps,
|
||||
|
||||
@ -9931,7 +9931,7 @@ static void red_connect_cursor(RedWorker *worker, RedClient *client, RedsStream
|
||||
}
|
||||
channel = worker->cursor_channel;
|
||||
spice_info("add cursor channel client");
|
||||
ccc = cursor_channel_client_new(&channel->common, client, stream,
|
||||
ccc = cursor_channel_client_new(channel, client, stream,
|
||||
migrate,
|
||||
common_caps, num_common_caps,
|
||||
caps, num_caps);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user