diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-05-27 23:13:25 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-05-29 00:13:23 +0800 |
commit | fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056 (patch) | |
tree | ae78be371695c3dc18847b87d3f014f985aa3a40 /mail/mail-mt.h | |
parent | 6f5464f34ceec9e5701e3e3e651a40f9e6b3a072 (diff) | |
download | gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.gz gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.zst gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.zip |
Prefer GLib basic types over C types.
Diffstat (limited to 'mail/mail-mt.h')
-rw-r--r-- | mail/mail-mt.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/mail/mail-mt.h b/mail/mail-mt.h index ed23c3beeb..396eb77ad2 100644 --- a/mail/mail-mt.h +++ b/mail/mail-mt.h @@ -40,7 +40,7 @@ typedef void (*MailMsgDispatchFunc) (gpointer msg); struct _MailMsg { MailMsgInfo *info; volatile gint ref_count; - unsigned int seq; /* seq number for synchronisation */ + guint seq; /* seq number for synchronisation */ gint priority; /* priority (default = 0) */ CamelOperation *cancel; /* a cancellation/status handle */ CamelException ex; /* an initialised camel exception, upto the caller to use this */ @@ -66,10 +66,10 @@ gpointer mail_msg_new (MailMsgInfo *info); gpointer mail_msg_ref (gpointer msg); void mail_msg_unref (gpointer msg); void mail_msg_check_error (gpointer msg); -void mail_msg_cancel(unsigned int msgid); -void mail_msg_wait(unsigned int msgid); +void mail_msg_cancel(guint msgid); +void mail_msg_wait(guint msgid); void mail_msg_wait_all(void); -int mail_msg_active(unsigned int msgid); +gint mail_msg_active(guint msgid); /* dispatch a message */ void mail_msg_main_loop_push (gpointer msg); @@ -84,13 +84,13 @@ void mail_cancel_all (void); void mail_msg_set_cancelable (gpointer msg, gboolean status); /* request a string/password */ -char *mail_get_password (CamelService *service, const char *prompt, +gchar *mail_get_password (CamelService *service, const gchar *prompt, gboolean secret, gboolean *cache); /* present information and get an ok (or possibly cancel) * "type" is as for gnome_message_box_new(); */ -gboolean mail_user_message (const char *type, const char *prompt, gboolean allow_cancel); +gboolean mail_user_message (const gchar *type, const gchar *prompt, gboolean allow_cancel); /* asynchronous event proxies */ typedef struct _MailAsyncEvent { @@ -103,14 +103,14 @@ typedef enum _mail_async_event_t { MAIL_ASYNC_THREAD } mail_async_event_t; -typedef void (*MailAsyncFunc)(void *, void *, void *); +typedef void (*MailAsyncFunc)(gpointer , gpointer , gpointer ); /* create a new async event handler */ MailAsyncEvent *mail_async_event_new(void); /* forward a camel event (or other call) to the gui thread */ -int mail_async_event_emit(MailAsyncEvent *ea, mail_async_event_t type, MailAsyncFunc func, void *, void *, void *); +gint mail_async_event_emit(MailAsyncEvent *ea, mail_async_event_t type, MailAsyncFunc func, gpointer , gpointer , gpointer ); /* wait for all outstanding async events to complete */ -int mail_async_event_destroy(MailAsyncEvent *ea); +gint mail_async_event_destroy(MailAsyncEvent *ea); /* Call a function in the gui thread, wait for it to return, type is the marshaller to use */ typedef enum { @@ -122,9 +122,9 @@ typedef enum { MAIL_CALL_p_ppippp } mail_call_t; -typedef void *(*MailMainFunc)(); +typedef gpointer (*MailMainFunc)(); -void *mail_call_main(mail_call_t type, MailMainFunc func, ...); +gpointer mail_call_main(mail_call_t type, MailMainFunc func, ...); /* use with caution. only works with active message's anyway */ void mail_enable_stop(void); |