diff options
author | Alon Levy <alevy@redhat.com> | 2010-11-10 09:52:28 +0200 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2011-03-02 17:27:52 +0200 |
commit | 8cd5568c92384490ec20f898d2d8c12009b6bf47 (patch) | |
tree | a9ef6fca1c4d6660b69b8b48e38b6d952fe0e63e /server/red_channel.h | |
parent | 16bff20f91c928349dff7329ac63bddcab2444b2 (diff) | |
download | spice-8cd5568c92384490ec20f898d2d8c12009b6bf47.tar.gz spice-8cd5568c92384490ec20f898d2d8c12009b6bf47.tar.xz spice-8cd5568c92384490ec20f898d2d8c12009b6bf47.zip |
server/red_channel (+): remove red_channel_add_buf
Diffstat (limited to 'server/red_channel.h')
-rw-r--r-- | server/red_channel.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/server/red_channel.h b/server/red_channel.h index f991f2d4..d0f7fb79 100644 --- a/server/red_channel.h +++ b/server/red_channel.h @@ -148,10 +148,6 @@ struct RedChannel { struct { SpiceMarshaller *marshaller; SpiceDataHeader *header; - union { - SpiceMsgSetAck ack; - SpiceMsgMigrate migrate; - } u; uint32_t size; PipeItem *item; int blocked; @@ -218,7 +214,6 @@ int red_channel_is_connected(RedChannel *channel); void red_channel_destroy(RedChannel *channel); -void red_channel_shutdown(RedChannel *channel); /* should be called when a new channel is ready to send messages */ void red_channel_init_outgoing_messages_window(RedChannel *channel); @@ -229,10 +224,8 @@ int red_channel_handle_message(RedChannel *channel, uint32_t size, /* default error handler that disconnects channel */ void red_channel_default_peer_on_error(RedChannel *channel); -/* when preparing send_data: should call init and then add_buf per buffer that is - being sent */ +/* when preparing send_data: should call init and then use marshaller */ void red_channel_init_send_data(RedChannel *channel, uint16_t msg_type, PipeItem *item); -void red_channel_add_buf(RedChannel *channel, void *data, uint32_t size); uint64_t red_channel_get_message_serial(RedChannel *channel); void red_channel_set_message_serial(RedChannel *channel, uint64_t); @@ -254,6 +247,8 @@ void red_channel_ack_zero_messages_window(RedChannel *channel); void red_channel_ack_set_client_window(RedChannel *channel, int client_window); void red_channel_push_set_ack(RedChannel *channel); +void red_channel_shutdown(RedChannel *channel); + // TODO: unstaticed for display/cursor channels. they do some specific pushes not through // adding elements or on events. but not sure if this is actually required (only result // should be that they ""try"" a little harder, but if the event system is correct it |