fix to show a sample correct implementation.
2000-02-22 bertrand <Bertrand.Guiheneuf@aful.org> * message-list.c (message_list_set_folder): fix to show a sample correct implementation. * camel-folder.c (camel_folder_get_subfolder): (camel_folder_create): (camel_folder_delete): (camel_folder_delete_messages): (camel_folder_list_subfolders): (camel_folder_expunge): (camel_folder_get_message_by_number): (camel_folder_get_message_count): (camel_folder_append_message): (camel_folder_copy_message_to): (camel_folder_get_summary): (camel_folder_get_message_uid): (camel_folder_get_message_by_uid): (camel_folder_get_uid_list): Check folder state (open/close) and raise an exception if it is not ok. * providers/mbox/camel-mbox-folder.c (_create): create the file and the path with two different names. * camel-folder.c (_create): handle the case when the folder name starts with '/' * camel-exception.c (camel_exception_new): use (void) instead of () in decl. * camel-exception.h: cosmetic fixes. * camel-exception.c (camel_exception_init): new routine. Fix a bug in mail/message-list.c * camel-folder.h: cosmetic changes. * camel-stream-b64.c (reset__static): added a reset method. Thanks message-browser to find so much bugs :) * providers/mbox/Makefile.am (libcamelmbox_la_LIBADD): readd Unicode libs. Fixes and exception handling in camel-folder. Fixes in mail/evolution-mail to make it not segfault and to demonstrate a correct implementation. svn path=/trunk/; revision=1902
This commit is contained in:
committed by
Bertrand Guiheneuf
parent
7c6897ee95
commit
f65a2d78c6
@ -38,7 +38,7 @@
|
||||
* Return value: The newly allocated exception object.
|
||||
**/
|
||||
CamelException *
|
||||
camel_exception_new ()
|
||||
camel_exception_new (void)
|
||||
{
|
||||
CamelException *ex;
|
||||
|
||||
@ -51,6 +51,26 @@ camel_exception_new ()
|
||||
return ex;
|
||||
}
|
||||
|
||||
/**
|
||||
* camel_exception_init: init a (statically allocated) exception.
|
||||
*
|
||||
* Init an exception. This routine is mainly
|
||||
* useful when using a statically allocated
|
||||
* exception.
|
||||
*
|
||||
*
|
||||
**/
|
||||
void
|
||||
camel_exception_init (CamelException *ex)
|
||||
{
|
||||
ex->desc = NULL;
|
||||
|
||||
/* set the Exception Id to NULL */
|
||||
ex->id = CAMEL_EXCEPTION_NONE;
|
||||
|
||||
return ex;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* camel_exception_clear: Clear an exception
|
||||
|
||||
Reference in New Issue
Block a user