Mercurial > pidgin
comparison libpurple/protocols/msn/notification.h @ 25542:fd5eedf131b4
Generalize the FQY command so it can be used by different callbacks based
on the place that called it. Then automatically call an FQY when sending
the buddy list ADL's for a buddy with an unknown network. Then we can send
a corrected ADL later with the network from the FQY.
This should make it easier for people with OCS/Yahoo contacts that were
added incorrectly by previous versions, as they shouldn't need to mess with
their address book outside of Pidgin (but if there are multiple buddy
copies, that may need fixing externally). I should probably figure out how
to permanently fix the Membership lists, eventually.
References #6755.
References #3322
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Fri, 27 Feb 2009 07:13:20 +0000 |
parents | d6de4f9de12d |
children | c384d62009c0 |
comparison
equal
deleted
inserted
replaced
25539:14b927f45ec5 | 25542:fd5eedf131b4 |
---|---|
56 MsnServConn *servconn; | 56 MsnServConn *servconn; |
57 | 57 |
58 gboolean in_use; | 58 gboolean in_use; |
59 }; | 59 }; |
60 | 60 |
61 typedef void (*MsnFqyCb)(MsnSession *session, const char *passport, MsnNetwork network); | |
62 | |
61 #include "state.h" | 63 #include "state.h" |
62 void uum_send_msg(MsnSession *session,MsnMessage *msg); | 64 void uum_send_msg(MsnSession *session,MsnMessage *msg); |
63 | 65 |
64 void msn_notification_end(void); | 66 void msn_notification_end(void); |
65 void msn_notification_init(void); | 67 void msn_notification_init(void); |
67 void msn_notification_add_buddy_to_list(MsnNotification *notification, | 69 void msn_notification_add_buddy_to_list(MsnNotification *notification, |
68 MsnListId list_id, MsnUser *user); | 70 MsnListId list_id, MsnUser *user); |
69 void msn_notification_rem_buddy_from_list(MsnNotification *notification, | 71 void msn_notification_rem_buddy_from_list(MsnNotification *notification, |
70 MsnListId list_id, MsnUser *user); | 72 MsnListId list_id, MsnUser *user); |
71 | 73 |
72 void msn_notification_send_fqy(MsnSession *session, const char *passport); | 74 void msn_notification_send_fqy(MsnSession *session, |
75 const char *payload, int payload_len, | |
76 MsnFqyCb cb); | |
73 | 77 |
74 MsnNotification *msn_notification_new(MsnSession *session); | 78 MsnNotification *msn_notification_new(MsnSession *session); |
75 void msn_notification_destroy(MsnNotification *notification); | 79 void msn_notification_destroy(MsnNotification *notification); |
76 gboolean msn_notification_connect(MsnNotification *notification, | 80 gboolean msn_notification_connect(MsnNotification *notification, |
77 const char *host, int port); | 81 const char *host, int port); |