diff options
author | bertrand <Bertrand.Guiheneuf@aful.org> | 2000-02-18 06:16:33 +0800 |
---|---|---|
committer | Bertrand Guiheneuf <bertrand@src.gnome.org> | 2000-02-18 06:16:33 +0800 |
commit | 39400a38c775a76faa342d519454d789e55bb90d (patch) | |
tree | 62b607d5e8edfc3b8f82253a39e0f58293ea6144 /camel/camel-folder.c | |
parent | 0996e4f1ac82ee9fe15be3367d90e0dffd21d936 (diff) | |
download | gsoc2013-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-folder.c')
-rw-r--r-- | camel/camel-folder.c | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/camel/camel-folder.c b/camel/camel-folder.c index d7366d51b4..fa0cde0245 100644 --- a/camel/camel-folder.c +++ b/camel/camel-folder.c @@ -49,6 +49,8 @@ static void _close (CamelFolder *folder, gboolean expunge, CamelException *ex); +#ifdef FOLDER_ASYNC_TEST + /* Async operations are not used for the moment */ static void _open_async (CamelFolder *folder, CamelFolderOpenMode mode, @@ -61,6 +63,7 @@ static void _close_async (CamelFolder *folder, gpointer user_data, CamelException *ex); +#endif static void _set_name (CamelFolder *folder, const gchar *name, @@ -132,9 +135,13 @@ camel_folder_class_init (CamelFolderClass *camel_folder_class) /* virtual method definition */ camel_folder_class->init_with_store = _init_with_store; camel_folder_class->open = _open; +#ifdef FOLDER_ASYNC_TEST camel_folder_class->open_async = _open_async; +#endif camel_folder_class->close = _close; +#ifdef FOLDER_ASYNC_TEST camel_folder_class->close_async = _close_async; +#endif camel_folder_class->set_name = _set_name; camel_folder_class->get_name = _get_name; camel_folder_class->get_full_name = _get_full_name; @@ -302,7 +309,7 @@ camel_folder_open (CamelFolder *folder, - +#ifdef FOLDER_ASYNC_TEST static void _open_async (CamelFolder *folder, @@ -317,6 +324,7 @@ _open_async (CamelFolder *folder, + /** * camel_folder_open: Open a folder * @folder: The folder object @@ -347,7 +355,7 @@ camel_folder_open_async (CamelFolder *folder, } - +#endif /* FOLDER_ASYNC_TEST */ @@ -392,6 +400,7 @@ camel_folder_close (CamelFolder *folder, +#ifdef FOLDER_ASYNC_TEST static void @@ -442,7 +451,7 @@ camel_folder_close_async (CamelFolder *folder, } - +#endif static void @@ -1686,6 +1695,10 @@ _get_message_uid_by_number (CamelFolder *folder, gint message_number, CamelExcep return NULL; } + +const gchar * +camel_folder_get_message_uid_by_number (CamelFolder *folder, gint message_number, CamelException *ex); + /** * camel_folder_get_message_uid_by_number: get the UID corresponding to a message number * @folder: Folder object @@ -1710,6 +1723,8 @@ camel_folder_get_message_uid_by_number (CamelFolder *folder, gint message_number /* if (!folder->has_uid_capability) return NULL; */ /* return CF_CLASS (folder)->get_message_uid_by_number (folder, message_number, ex); */ + + return NULL; } |