Mercurial > pidgin.yaz
diff libpurple/protocols/myspace/myspace.h @ 17947:ac7066ffa109
Add msim_check_mail to check for new mail (called periodically), and
msim_check_mail_cb to handle the reply, informing the user of new mail.
Also, free the GHashTable returned from msim_parse_body() in a few places.
author | Jeffrey Connelly <jaconnel@calpoly.edu> |
---|---|
date | Sun, 15 Jul 2007 06:10:30 +0000 |
parents | b3e971b375b5 |
children | c23122e0af91 |
line wrap: on
line diff
--- a/libpurple/protocols/myspace/myspace.h Fri Jul 13 05:48:13 2007 +0000 +++ b/libpurple/protocols/myspace/myspace.h Sun Jul 15 06:10:30 2007 +0000 @@ -85,6 +85,10 @@ /* Time to check if alive (milliseconds) */ #define MSIM_KEEPALIVE_INTERVAL_CHECK (30 * 1000) +/* Time to check for new mail (milliseconds) */ +#define MSIM_MAIL_INTERVAL_CHECK (30 * 1000) //(2 * 60 * 1000) + + /* Constants */ #define HASH_SIZE 0x14 /**< Size of SHA-1 hash for login */ #define NONCE_SIZE 0x20 /**< Half of decoded 'nc' field */ @@ -250,6 +254,9 @@ gboolean msim_offline_message(const PurpleBuddy *buddy); +void msim_check_mail_cb(MsimSession *session, MsimMessage *userinfo, gpointer data); +gboolean msim_check_mail(gpointer data); + void msim_input_cb(gpointer gc_uncasted, gint source, PurpleInputCondition cond);