/* Copyright (c) 2014-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "buffer.h"
#include "istream-private.h"
#include "istream-callback.h"
struct callback_istream {
void *context;
};
{
}
{
/* already returned EOF / error */
return -1;
}
}
/* data was added outside the callback */
/* EOF / error */
return -1;
/* EOF was returned with some data still added to the buffer.
return the buffer first and EOF only on the next call. */
/* buffer full */
return -2;
}
}
struct istream *
{
return istream;
}
{
}
{
}
{
}
const char *error)
{
}