aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-stream.h
diff options
context:
space:
mode:
authorbertrand <Bertrand.Guiheneuf@aful.org>2000-02-18 06:16:33 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>2000-02-18 06:16:33 +0800
commit39400a38c775a76faa342d519454d789e55bb90d (patch)
tree62b607d5e8edfc3b8f82253a39e0f58293ea6144 /camel/camel-stream.h
parent0996e4f1ac82ee9fe15be3367d90e0dffd21d936 (diff)
downloadgsoc2013-evolution-39400a38c775a76faa342d519454d789e55bb90d.tar.gz
gsoc2013-evolution-39400a38c775a76faa342d519454d789e55bb90d.tar.zst
gsoc2013-evolution-39400a38c775a76faa342d519454d789e55bb90d.zip
use camel_stream_reset instead of seek. The formatter should be able to
2000-02-17 bertrand <Bertrand.Guiheneuf@aful.org> * camel/camel-formatter.c (handle_text_plain): (handle_text_html): use camel_stream_reset instead of seek. The formatter should be able to work with all streams, not only seekable streams. In the case where some provider implementation would not be able to provide a reset method to their stream, implementors would have to find a workaround. * camel/camel-session.c (camel_session_new): use (void) instean of () in function decl. * camel/camel-folder.c: ifdef async operation related code. * camel/camel-seekable-stream.c (_seek): added a warning. (_reset): default implementation of reset for seekable stream. * camel/camel-mime-message.h: set_received_date declaration fix. cosmetic changes. * camel/providers/mbox/camel-mbox-provider.c (camel_provider_module_init): use (void) instead of (). * camel/camel-stream.c (camel_stream_reset): new method for CamelStream. svn path=/trunk/; revision=1835
Diffstat (limited to 'camel/camel-stream.h')
-rw-r--r--camel/camel-stream.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/camel/camel-stream.h b/camel/camel-stream.h
index 0496e13d7f..738160306b 100644
--- a/camel/camel-stream.h
+++ b/camel/camel-stream.h
@@ -60,9 +60,10 @@ typedef struct {
gint (*read) (CamelStream *stream, gchar *buffer, gint n);
gint (*write) (CamelStream *stream, const gchar *buffer, gint n);
void (*flush) (CamelStream *stream);
- gint (*available) (CamelStream *stream);
+ gboolean (*available) (CamelStream *stream);
gboolean (*eos) (CamelStream *stream);
void (*close) (CamelStream *stream);
+ void (*reset) (CamelStream *stream);
} CamelStreamClass;
@@ -83,6 +84,7 @@ void camel_stream_flush (CamelStream *stream);
gboolean camel_stream_available (CamelStream *stream);
gboolean camel_stream_eos (CamelStream *stream);
void camel_stream_close (CamelStream *stream);
+void camel_stream_reset (CamelStream *stream);