mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-11 16:55:33 +00:00
server/red_channel: reflect SpiceDataHeader fields in handle_parsed_proc
This commit is contained in:
parent
194a6be5f7
commit
b4c3b8a586
@ -290,7 +290,7 @@ static void inputs_channel_send_item(RedChannel *channel, PipeItem *base)
|
||||
red_channel_begin_send_message(channel);
|
||||
}
|
||||
|
||||
static int inputs_channel_handle_parsed(RedChannel *channel, size_t size, uint32_t type, void *message)
|
||||
static int inputs_channel_handle_parsed(RedChannel *channel, uint32_t size, uint16_t type, void *message)
|
||||
{
|
||||
InputsChannel *inputs_channel = (InputsChannel *)channel;
|
||||
uint8_t *buf = (uint8_t *)message;
|
||||
|
||||
@ -655,7 +655,7 @@ static void main_channel_release_pipe_item(RedChannel *channel,
|
||||
free(base);
|
||||
}
|
||||
|
||||
static int main_channel_handle_parsed(RedChannel *channel, size_t size, uint32_t type, void *message)
|
||||
static int main_channel_handle_parsed(RedChannel *channel, uint32_t size, uint16_t type, void *message)
|
||||
{
|
||||
MainChannel *main_chan = SPICE_CONTAINEROF(channel, MainChannel, base);
|
||||
|
||||
|
||||
@ -38,7 +38,7 @@
|
||||
|
||||
typedef int (*handle_message_proc)(void *opaque,
|
||||
SpiceDataHeader *header, uint8_t *msg);
|
||||
typedef int (*handle_parsed_proc)(void *opaque, size_t size, uint32_t type, void *message);
|
||||
typedef int (*handle_parsed_proc)(void *opaque, uint32_t size, uint16_t type, void *message);
|
||||
typedef uint8_t *(*alloc_msg_recv_buf_proc)(void *opaque, SpiceDataHeader *msg_header);
|
||||
typedef void (*release_msg_recv_buf_proc)(void *opaque,
|
||||
SpiceDataHeader *msg_header, uint8_t *msg);
|
||||
@ -98,7 +98,7 @@ typedef struct RedChannel RedChannel;
|
||||
|
||||
typedef uint8_t *(*channel_alloc_msg_recv_buf_proc)(RedChannel *channel,
|
||||
SpiceDataHeader *msg_header);
|
||||
typedef int (*channel_handle_parsed_proc)(RedChannel *channel, size_t size, uint32_t type,
|
||||
typedef int (*channel_handle_parsed_proc)(RedChannel *channel, uint32_t size, uint16_t type,
|
||||
void *message);
|
||||
typedef int (*channel_handle_message_proc)(RedChannel *channel,
|
||||
SpiceDataHeader *header, uint8_t *msg);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user