aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-store.c
diff options
context:
space:
mode:
author1 <NotZed@Ximian.com>2001-10-22 04:27:43 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-10-22 04:27:43 +0800
commitc435267723233da063f2ffdbc472a687cbc16658 (patch)
treec251a5201c4e8313be487aecb7f6e56d0b11be8b /camel/camel-store.c
parentc71602cae0a9726dd0cd3e4d1c8225cf9242dd82 (diff)
downloadgsoc2013-evolution-c435267723233da063f2ffdbc472a687cbc16658.tar
gsoc2013-evolution-c435267723233da063f2ffdbc472a687cbc16658.tar.gz
gsoc2013-evolution-c435267723233da063f2ffdbc472a687cbc16658.tar.bz2
gsoc2013-evolution-c435267723233da063f2ffdbc472a687cbc16658.tar.lz
gsoc2013-evolution-c435267723233da063f2ffdbc472a687cbc16658.tar.xz
gsoc2013-evolution-c435267723233da063f2ffdbc472a687cbc16658.tar.zst
gsoc2013-evolution-c435267723233da063f2ffdbc472a687cbc16658.zip
Dont do the macro stuff - basically so you can actually debug calls.
2001-10-21 <NotZed@Ximian.com> * camel-store.c (CS_CLASS): Dont do the macro stuff - basically so you can actually debug calls. (camel_store_uri_cmp): New function to compare store objects. * camel-vee-folder.c (vee_folder_add_info): oops, dont free the vuid, since its alloca'd now. (folder_changed_change): Kill a compile warning. svn path=/trunk/; revision=13855
Diffstat (limited to 'camel/camel-store.c')
-rw-r--r--camel/camel-store.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/camel/camel-store.c b/camel/camel-store.c
index df2f5bebb2..0f104b057b 100644
--- a/camel/camel-store.c
+++ b/camel/camel-store.c
@@ -43,7 +43,7 @@
static CamelServiceClass *parent_class = NULL;
/* Returns the class for a CamelStore */
-#define CS_CLASS(so) CAMEL_STORE_CLASS (CAMEL_OBJECT_GET_CLASS(so))
+#define CS_CLASS(so) ((CamelStoreClass *)((CamelObject *)(so))->classfuncs)
static CamelFolder *get_folder (CamelStore *store, const char *folder_name,
guint32 flags, CamelException *ex);
@@ -1028,3 +1028,13 @@ camel_mkdir_hier (const char *path, mode_t mode)
g_free (copy);
return 0;
}
+
+
+/* Return true if these uri's refer to the same object */
+gboolean
+camel_store_uri_cmp(CamelStore *store, const char *uria, const char *urib)
+{
+ g_assert(CAMEL_IS_STORE(store));
+
+ return CS_CLASS(store)->compare_folder_name(uria, urib);
+}