diff options
author | Alon Levy <alevy@redhat.com> | 2010-11-07 12:19:18 +0200 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2010-11-07 12:35:18 +0200 |
commit | 4c8499703e78a53769692111044a5925788395da (patch) | |
tree | 7e98a4301e66ccb5fa7e04deed20f89f07d8b51d | |
parent | ad0bae9a86673171a4952a41811290f006e65e00 (diff) | |
download | spice-4c8499703e78a53769692111044a5925788395da.tar.gz spice-4c8499703e78a53769692111044a5925788395da.tar.xz spice-4c8499703e78a53769692111044a5925788395da.zip |
server/red_channel: fix handle_parsed_proc signature to reflect SpiceDataHeader fields
-rw-r--r-- | server/inputs_channel.c | 2 | ||||
-rw-r--r-- | server/main_channel.c | 2 | ||||
-rw-r--r-- | server/red_channel.h | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/server/inputs_channel.c b/server/inputs_channel.c index f19153a2..25025bda 100644 --- a/server/inputs_channel.c +++ b/server/inputs_channel.c @@ -280,7 +280,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; diff --git a/server/main_channel.c b/server/main_channel.c index ffa228d7..3aa6ad21 100644 --- a/server/main_channel.c +++ b/server/main_channel.c @@ -623,7 +623,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); diff --git a/server/red_channel.h b/server/red_channel.h index 5f377244..c271d517 100644 --- a/server/red_channel.h +++ b/server/red_channel.h @@ -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); |