istream.c revision 20344c0e814139e3c365fbb9287478f91512089e
/* Copyright (c) 2002-2003 Timo Sirainen */
#include "lib.h"
#include "istream-internal.h"
{
}
{
}
{
}
{
}
{
max_size);
}
void (*timeout_cb)(void *), void *context)
{
}
{
return;
/* reset buffer data */
}
{
}
if (v_offset == 0)
else {
}
}
}
{
return -1;
/* virtual limit reached */
return -1;
}
}
{
return;
}
return;
/* virtual limit reached */
} else {
}
}
{
return;
}
{
char *ret_buf;
size_t i;
stream->stream_errno = 0;
return NULL;
}
i_error("i_stream_next_line() called for unmodifyable stream");
return NULL;
}
/* @UNSAFE */
/* got it */
else
i++;
break;
}
}
return ret_buf;
}
{
char *line;
return line;
if (i_stream_read(stream) > 0)
return line;
}
{
*size = 0;
return NULL;
}
}
{
*size = 0;
return NULL;
}
}
{
/* we need more data */
if (ret < 0)
break;
}
*size > 0 ? 0 : -1;
}
{
}