/* Copyright (c) 2002-2018 Dovecot authors, see the included COPYING file
*/
#include "lib.h"
#include "buffer.h"
#include "str.h"
#include "iostream-pump.h"
#include "istream.h"
#include "ostream.h"
#include <unistd.h>
struct iostream_pump {
unsigned int ref;
void *context;
bool waiting_output;
bool completed;
};
static
{
switch(res) {
return;
return;
return;
/* flush it */
case -1:
break;
case 0:
break;
default:
break;
}
return;
return;
}
i_unreached();
}
static
{
int ret;
if (ret < 0)
return ret;
}
return 1;
}
}
return ret;
}
struct iostream_pump *
{
/* ref streams */
/* create pump */
return pump;
}
{
/* add flush handler */
/* make IO objects */
/* make sure we do first read right away */
}
{
}
{
}
{
}
{
}
{
}
}
{
}
{
return pump->waiting_output;
}
{
}