Mercurial > pidgin
diff libpurple/protocols/msn/session.h @ 19843:60bc06498746
Committing khc's msnp14 changes from Trac Ticket #148. --rlaager
committer: Richard Laager <rlaager@wiktel.com>
author | Ka-Hing Cheung <khc@hxbc.us> |
---|---|
date | Sun, 15 Apr 2007 04:12:27 +0000 |
parents | 32c366eeeb99 |
children | 6f986caeab59 |
line wrap: on
line diff
--- a/libpurple/protocols/msn/session.h Sun Apr 15 00:32:57 2007 +0000 +++ b/libpurple/protocols/msn/session.h Sun Apr 15 04:12:27 2007 +0000 @@ -38,6 +38,8 @@ #include "cmdproc.h" #include "nexus.h" #include "httpconn.h" +#include "contact.h" +#include "oim.h" #include "userlist.h" #include "sync.h" @@ -94,6 +96,8 @@ MsnNotification *notification; MsnNexus *nexus; + MsnContact *contact; + MsnOim *oim; MsnSync *sync; MsnUserList *userlist; @@ -105,8 +109,18 @@ int conv_seq; /**< The current conversation sequence number. */ + /*psm info*/ + char *psm; + + /*first blist contact node*/ + PurpleBlistNode *bnode; + struct { + /*t and p, get via USR TWN*/ + char *t; + char *p; + char *kv; char *sid; char *mspauth; @@ -114,7 +128,6 @@ char *file; char *client_ip; int client_port; - } passport_info; }; @@ -224,4 +237,17 @@ */ void msn_session_finish_login(MsnSession *session); +/*get conversation via session, + * If has one, return that,else create a new one; + */ +PurpleConversation *msn_session_get_conv(MsnSession *session,const char *passport); + +/*post message to User*/ +void msn_session_report_user(MsnSession *session,const char *passport, + char *msg,PurpleMessageFlags flags); + +void msn_session_set_bnode(MsnSession *session); + +PurpleBlistNode *msn_session_get_bnode(MsnSession *session); + #endif /* _MSN_SESSION_H_ */