server/red_channel: unstatic red_channel_pipe_clear (for red_worker)

This commit is contained in:
Alon Levy 2010-11-07 13:06:36 +02:00
parent a30a602654
commit c0b7abaa48
2 changed files with 5 additions and 2 deletions

View File

@ -30,7 +30,6 @@
#include "red_channel.h"
static PipeItem *red_channel_pipe_get(RedChannel *channel);
static void red_channel_pipe_clear(RedChannel *channel);
static void red_channel_event(int fd, int event, void *data);
/* return the number of bytes read. -1 in case of error */
@ -578,7 +577,7 @@ int red_channel_is_connected(RedChannel *channel)
return !!channel->peer;
}
static void red_channel_pipe_clear(RedChannel *channel)
void red_channel_pipe_clear(RedChannel *channel)
{
PipeItem *item;
if (channel->send_data.item) {

View File

@ -230,5 +230,9 @@ void red_channel_pipe_add_type(RedChannel *channel, int pipe_item_type);
// should be that they ""try"" a little harder, but if the event system is correct it
// should not make any difference.
void red_channel_push(RedChannel *channel);
// TODO: again - what is the context exactly? this happens in channel disconnect. but our
// current red_channel_shutdown also closes the socket - is there a socket to close?
// are we reading from an fd here? arghh
void red_channel_pipe_clear(RedChannel *channel);
#endif