aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-mt.h
diff options
context:
space:
mode:
author5 <NotZed@Ximian.com>2001-10-16 02:55:18 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-10-16 02:55:18 +0800
commit3ac3a15e3ccad3b7eb27f9f1db172effa951b554 (patch)
tree27667c3db149010cfebc224fa9436b8fe1c5c17a /mail/mail-mt.h
parenta58f0363043a173d3c6fa2afad13e43cad563d60 (diff)
downloadgsoc2013-evolution-3ac3a15e3ccad3b7eb27f9f1db172effa951b554.tar.gz
gsoc2013-evolution-3ac3a15e3ccad3b7eb27f9f1db172effa951b554.tar.zst
gsoc2013-evolution-3ac3a15e3ccad3b7eb27f9f1db172effa951b554.zip
Proxy get-password call to main thread. (forget_password): same for
2001-10-15 <NotZed@Ximian.com> * mail-session.c (get_password): Proxy get-password call to main thread. (forget_password): same for forget_password. (get_filter_driver): and same for get_filter_driver, since it uses gtk objects. * mail-mt.c (mail_call_main): new generic interface for calling stuff/proxying in the gui thread. svn path=/trunk/; revision=13679
Diffstat (limited to 'mail/mail-mt.h')
-rw-r--r--mail/mail-mt.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/mail/mail-mt.h b/mail/mail-mt.h
index 07616fab50..feeddd10cc 100644
--- a/mail/mail-mt.h
+++ b/mail/mail-mt.h
@@ -71,6 +71,18 @@ gboolean mail_user_message (const char *type, const char *prompt, gboolean allow
/* forward a camel event (or other call) to the gui thread */
int mail_proxy_event(CamelObjectEventHookFunc func, CamelObject *o, void *event_data, void *data);
+/* Call a function in the gui thread, wait for it to return, type is the marshaller to use */
+typedef enum {
+ MAIL_CALL_p_p,
+ MAIL_CALL_p_ppp,
+ MAIL_CALL_p_pppp,
+ MAIL_CALL_p_ppippp,
+} mail_call_t;
+
+typedef void *(*MailMainFunc)();
+
+void *mail_call_main(mail_call_t type, MailMainFunc func, ...);
+
/* a message port that receives messages in the gui thread, used for sending port */
extern EMsgPort *mail_gui_port;
/* a message port that receives messages in the gui thread, used for the reply port */