aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-store.c
diff options
context:
space:
mode:
authorbertrand <bertrand@helixcode.com>2000-01-22 09:35:11 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>2000-01-22 09:35:11 +0800
commite8a2fed920088141d8ed47c6803bc166b18c5418 (patch)
treeadcebb99ddf323a7c408145556b000b2862ff8d9 /camel/camel-store.c
parent8fbfb0ae4829f216501380e2f63ed6b4cc1a3306 (diff)
downloadgsoc2013-evolution-e8a2fed920088141d8ed47c6803bc166b18c5418.tar
gsoc2013-evolution-e8a2fed920088141d8ed47c6803bc166b18c5418.tar.gz
gsoc2013-evolution-e8a2fed920088141d8ed47c6803bc166b18c5418.tar.bz2
gsoc2013-evolution-e8a2fed920088141d8ed47c6803bc166b18c5418.tar.lz
gsoc2013-evolution-e8a2fed920088141d8ed47c6803bc166b18c5418.tar.xz
gsoc2013-evolution-e8a2fed920088141d8ed47c6803bc166b18c5418.tar.zst
gsoc2013-evolution-e8a2fed920088141d8ed47c6803bc166b18c5418.zip
add exception handling everywhere in the store related functions
2000-01-21 bertrand <bertrand@helixcode.com> * camel/camel-store.c: add exception handling everywhere in the store related functions arguments. * camel/providers/mbox/camel-mbox-folder.c: idem * camel/providers/mbox/camel-mbox-folder.h: idem * camel/providers/mbox/camel-mbox-store.h: idem * camel/providers/mbox/Makefile.am (libcamelmbox_la_SOURCES): added camel-mbox-provider.c to the mbox provider sources. svn path=/trunk/; revision=1605
Diffstat (limited to 'camel/camel-store.c')
-rw-r--r--camel/camel-store.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/camel/camel-store.c b/camel/camel-store.c
index 5b69490521..590d5e15bd 100644
--- a/camel/camel-store.c
+++ b/camel/camel-store.c
@@ -32,12 +32,12 @@ static CamelServiceClass *parent_class = NULL;
/* Returns the class for a CamelStore */
#define CS_CLASS(so) CAMEL_STORE_CLASS (GTK_OBJECT(so)->klass)
-static void _set_separator(CamelStore *store, gchar sep);
-static CamelFolder *_get_root_folder(CamelStore *store);
-static CamelFolder *_get_default_folder(CamelStore *store);
-static void _init(CamelStore *store, CamelSession *session, const gchar *url_name);
-static CamelFolder *_get_folder (CamelStore *store, const gchar *folder_name);
-static gchar _get_separator (CamelStore *store);
+static void _set_separator(CamelStore *store, gchar sep, CamelException *ex);
+static CamelFolder *_get_root_folder(CamelStore *store, CamelException *ex);
+static CamelFolder *_get_default_folder(CamelStore *store, CamelException *ex);
+static void _init(CamelStore *store, CamelSession *session, const gchar *url_name, CamelException *ex);
+static CamelFolder *_get_folder (CamelStore *store, const gchar *folder_name, CamelException *ex);
+static gchar _get_separator (CamelStore *store, CamelException *ex);
static void _finalize (GtkObject *object);
@@ -105,10 +105,10 @@ camel_store_get_type (void)
*
**/
void
-camel_store_init (CamelStore *store, CamelSession *session, const gchar *url_name)
+camel_store_init (CamelStore *store, CamelSession *session, const gchar *url_name, CamelException *ex)
{
g_assert(store);
- CS_CLASS(store)->init (store, session, url_name);
+ CS_CLASS(store)->init (store, session, url_name, ex);
}
@@ -124,7 +124,7 @@ camel_store_init (CamelStore *store, CamelSession *session, const gchar *url_nam
*
**/
static void
-_init (CamelStore *store, CamelSession *session, const gchar *url_name)
+_init (CamelStore *store, CamelSession *session, const gchar *url_name, CamelException *ex)
{
#warning re-enable assertion here.
@@ -160,7 +160,7 @@ _finalize (GtkObject *object)
*
**/
static void
-_set_separator (CamelStore *store, gchar sep)
+_set_separator (CamelStore *store, gchar sep, CamelException *ex)
{
store->separator = sep;
}
@@ -170,7 +170,7 @@ _set_separator (CamelStore *store, gchar sep)
static gchar
-_get_separator (CamelStore *store)
+_get_separator (CamelStore *store, CamelException *ex)
{
g_assert(store);
return store->separator;
@@ -187,9 +187,9 @@ _get_separator (CamelStore *store)
* Return value: the separator
**/
gchar
-camel_store_get_separator (CamelStore *store)
+camel_store_get_separator (CamelStore *store, CamelException *ex)
{
- return CS_CLASS(store)->get_separator (store);
+ return CS_CLASS(store)->get_separator (store, ex);
}
@@ -199,7 +199,7 @@ camel_store_get_separator (CamelStore *store)
static CamelFolder *
-_get_folder (CamelStore *store, const gchar *folder_name)
+_get_folder (CamelStore *store, const gchar *folder_name, CamelException *ex)
{
return NULL;
}
@@ -223,9 +223,9 @@ _get_folder (CamelStore *store, const gchar *folder_name)
* Return value: the folder
**/
CamelFolder *
-camel_store_get_folder (CamelStore *store, const gchar *folder_name)
+camel_store_get_folder (CamelStore *store, const gchar *folder_name, CamelException *ex)
{
- return CS_CLASS(store)->get_folder (store, folder_name);
+ return CS_CLASS(store)->get_folder (store, folder_name, ex);
}
@@ -239,7 +239,7 @@ camel_store_get_folder (CamelStore *store, const gchar *folder_name)
* @Return value: the tolevel folder.
**/
static CamelFolder *
-_get_root_folder (CamelStore *store)
+_get_root_folder (CamelStore *store, CamelException *ex)
{
return NULL;
}
@@ -254,7 +254,7 @@ _get_root_folder (CamelStore *store)
* @Return value: the default folder.
**/
static CamelFolder *
-_get_default_folder (CamelStore *store)
+_get_default_folder (CamelStore *store, CamelException *ex)
{
return NULL;
}