server/red_channel: reflect SpiceDataHeader fields in handle_parsed_proc

This commit is contained in:
Alon Levy 2010-11-07 12:19:18 +02:00
parent 194a6be5f7
commit b4c3b8a586
3 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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);

View File

@ -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);