diff options
Diffstat (limited to 'camel/camel-store.c')
-rw-r--r-- | camel/camel-store.c | 12 |
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); +} |