Commit 5f3942cc 5f3942cc7d2cff317d9e72a4613844780dc6720a by Sam Roberts

Forgot to add stdio_stream_create() to the header, it opens a stream_t on

an existing FILE, and you can choose whether it fcloses() it or not.
1 parent a2a2c3a0
......@@ -49,6 +49,11 @@ Stream doesn't close it's underlying resource when it is closed or destroyed.
@deftypefun int decoder_stream_create (stream_t *@var{pstream}, stream_t @var{iostream}, const char *@var{encoding})
@end deftypefun
@deftypefun int stdio_stream_create (stream_t *@var{pstream}, FILE* @var{stdio}, int @var{flags})
If MU_STREAM_NO_CLOSE is specified, fclose() will not be called on
@var{stdio} when the stream is closed.
@end deftypefun
@deftypefun void stream_destroy (stream_t *@var{pstream}, void *@var{owner})
@end deftypefun
......
......@@ -57,6 +57,7 @@ extern int mapfile_stream_create __P ((stream_t *stream, const char* filename, i
extern int memory_stream_create __P ((stream_t *stream, const char* filename, int flags));
extern int encoder_stream_create __P ((stream_t *stream, stream_t iostream, const char *encoding));
extern int decoder_stream_create __P ((stream_t *stream, stream_t iostream, const char *encoding));
extern int stdio_stream_create __P ((stream_t *stream, FILE* stdio, int flags));
extern void stream_destroy __P ((stream_t *, void *owner));
......