diff options
author | Alon Levy <alevy@redhat.com> | 2010-11-07 19:32:25 +0200 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2010-11-07 19:32:25 +0200 |
commit | ceaa2cd0b902240dabd7495bedf2cbff9eb89271 (patch) | |
tree | 1be544179093be6ecaa41fb3b44ec248bdd0798f | |
parent | ff8e75d11b596f39188ccfed8863d29936aef656 (diff) | |
download | spice-ceaa2cd0b902240dabd7495bedf2cbff9eb89271.tar.gz spice-ceaa2cd0b902240dabd7495bedf2cbff9eb89271.tar.xz spice-ceaa2cd0b902240dabd7495bedf2cbff9eb89271.zip |
server/red_worker: change sig of handle_message_proc to red_channel's handle_parsed_proc, and rename to same
-rw-r--r-- | server/red_worker.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/server/red_worker.c b/server/red_worker.c index 0a97261e..1e667f96 100644 --- a/server/red_worker.c +++ b/server/red_worker.c @@ -351,7 +351,7 @@ typedef struct RedChannel RedChannel; typedef void (*channel_disconnect_proc)(RedChannel *channel); typedef void (*channel_hold_item_proc)(PipeItem *item); typedef void (*release_item_proc)(RedChannel *channel, void *item); -typedef int (*handle_message_proc)(RedChannel *channel, size_t size, uint32_t type, void *message); +typedef int (*handle_parsed_proc)(RedChannel *channel, uint32_t size, uint16_t type, void *message); struct RedChannel { spice_parse_channel_func_t parser; @@ -388,7 +388,7 @@ struct RedChannel { channel_disconnect_proc disconnect; channel_hold_item_proc hold_item; release_item_proc release_item; - handle_message_proc handle_message; + handle_parsed_proc handle_message; #ifdef RED_STATISTICS uint64_t *out_bytes_counter; #endif @@ -8957,7 +8957,7 @@ static void on_new_display_channel(RedWorker *worker) } } -static int channel_handle_message(RedChannel *channel, size_t size, uint32_t type, void *message) +static int channel_handle_message(RedChannel *channel, uint32_t size, uint16_t type, void *message) { switch (type) { case SPICE_MSGC_ACK_SYNC: @@ -9264,7 +9264,7 @@ static int display_channel_handle_migrate_data(DisplayChannel *channel, size_t s return TRUE; } -static int display_channel_handle_message(RedChannel *channel, size_t size, uint32_t type, void *message) +static int display_channel_handle_message(RedChannel *channel, uint32_t size, uint16_t type, void *message) { switch (type) { case SPICE_MSGC_DISPLAY_INIT: @@ -9368,7 +9368,7 @@ static RedChannel *__new_channel(RedWorker *worker, int size, uint32_t channel_i channel_disconnect_proc disconnect, channel_hold_item_proc hold_item, release_item_proc release_item, - handle_message_proc handle_message) + handle_parsed_proc handle_message) { struct epoll_event event; RedChannel *channel; |