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
This commit is contained in:
@ -1,7 +1,12 @@
|
||||
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.
|
||||
|
||||
2001-10-20 <NotZed@Ximian.com>
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -196,6 +196,7 @@ void camel_store_unsubscribe_folder (CamelStore *store,
|
||||
const char *folder_name,
|
||||
CamelException *ex);
|
||||
|
||||
gboolean camel_store_uri_cmp (CamelStore *store, const char *uria, const char *urib);
|
||||
|
||||
/* utility needed by some stores */
|
||||
int camel_mkdir_hier (const char *path, mode_t mode);
|
||||
|
@ -1307,7 +1307,7 @@ folder_changed_change(CamelSession *session, CamelSessionThreadMsg *msg)
|
||||
dd(printf(" Vfolder %supdate\nuids match:", (vf->flags & CAMEL_STORE_VEE_FOLDER_AUTO)?"auto-":""));
|
||||
matches_hash = g_hash_table_new(g_str_hash, g_str_equal);
|
||||
for (i=0;i<matches->len;i++) {
|
||||
dd(printf(" %s", matches->pdata[i]));
|
||||
dd(printf(" %s", (char *)matches->pdata[i]));
|
||||
g_hash_table_insert(matches_hash, matches->pdata[i], matches->pdata[i]);
|
||||
}
|
||||
dd(printf("\n"));
|
||||
|
Reference in New Issue
Block a user