diff options
author | Dan Winship <danw@src.gnome.org> | 2000-03-24 00:22:29 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-03-24 00:22:29 +0800 |
commit | 6d99be7149ce15e10460f80a218b0f4333b8c4be (patch) | |
tree | b681cbf085ee9e6733a6476ebc859d4d771b2991 /camel/camel-stream-buffer.h | |
parent | 58aa78c64b937828eb30550239eda4a429e66b19 (diff) | |
download | gsoc2013-evolution-6d99be7149ce15e10460f80a218b0f4333b8c4be.tar gsoc2013-evolution-6d99be7149ce15e10460f80a218b0f4333b8c4be.tar.gz gsoc2013-evolution-6d99be7149ce15e10460f80a218b0f4333b8c4be.tar.bz2 gsoc2013-evolution-6d99be7149ce15e10460f80a218b0f4333b8c4be.tar.lz gsoc2013-evolution-6d99be7149ce15e10460f80a218b0f4333b8c4be.tar.xz gsoc2013-evolution-6d99be7149ce15e10460f80a218b0f4333b8c4be.tar.zst gsoc2013-evolution-6d99be7149ce15e10460f80a218b0f4333b8c4be.zip |
Function to read one line of any size from a stream and return it in
* camel-stream-buffer.c (camel_stream_buffer_read_line): Function
to read one line of any size from a stream and return it in
allocated memory.
Also add camel-stream-buffer.h to camel.h and CamelStreamBuffer to
camel-types.h.
svn path=/trunk/; revision=2152
Diffstat (limited to 'camel/camel-stream-buffer.h')
-rw-r--r-- | camel/camel-stream-buffer.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/camel/camel-stream-buffer.h b/camel/camel-stream-buffer.h index c4b7e4b2e7..967c33e553 100644 --- a/camel/camel-stream-buffer.h +++ b/camel/camel-stream-buffer.h @@ -53,7 +53,7 @@ typedef enum CAMEL_STREAM_BUFFER_MODE = 0x80 } CamelStreamBufferMode; -typedef struct +struct _CamelStreamBuffer { CamelStream parent_object; @@ -67,7 +67,7 @@ typedef struct CamelStreamBufferMode mode; unsigned int flags; /* internal flags */ -} CamelStreamBuffer; +}; @@ -95,6 +95,8 @@ CamelStream *camel_stream_buffer_set_vbuf (CamelStreamBuffer *b, CamelStreamBuff /* read a line of characters */ int camel_stream_buffer_gets(CamelStreamBuffer *b, char *buf, int max); +char *camel_stream_buffer_read_line (CamelStreamBuffer *sbf); + #ifdef __cplusplus } #endif /* __cplusplus */ |