diff options
Diffstat (limited to 'mail/mail-mt.c')
-rw-r--r-- | mail/mail-mt.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mail/mail-mt.c b/mail/mail-mt.c index bec769b415..ec2529448d 100644 --- a/mail/mail-mt.c +++ b/mail/mail-mt.c @@ -3,6 +3,7 @@ #include <unistd.h> #include "e-util/e-msgport.h" +#include "camel/camel-operation.h" #include <glib.h> #include <pthread.h> @@ -40,7 +41,7 @@ void *mail_msg_new(mail_msg_op_t *ops, EMsgPort *reply_port, size_t size) msg->ops = ops; msg->seq = mail_msg_seq++; msg->msg.reply_port = reply_port; - msg->cancel = camel_cancel_new(); + msg->cancel = camel_operation_new(NULL, NULL); /* FIXME: report status somehow? */ camel_exception_init(&msg->ex); g_hash_table_insert(mail_msg_active, (void *)msg->seq, msg); @@ -64,7 +65,7 @@ void mail_msg_free(void *msg) MAIL_MT_UNLOCK(mail_msg_lock); - camel_cancel_unref(m->cancel); + camel_operation_unref(m->cancel); camel_exception_clear(&m->ex); g_free(m); } @@ -101,7 +102,7 @@ void mail_msg_cancel(unsigned int msgid) m = g_hash_table_lookup(mail_msg_active, (void *)msgid); if (m) - camel_cancel_cancel(m->cancel); + camel_operation_cancel(m->cancel); MAIL_MT_UNLOCK(mail_msg_lock); } |