Mercurial > pidgin.yaz
diff libpurple/protocols/msn/slplink.c @ 32036:cf702c6ab9e7
Getting the P2P version is probably the slplink's job, since it has
the rest of the information we need, like the session, which gives us
the userlist, etc.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Mon, 09 May 2011 22:56:29 +0000 |
parents | 37dda442bb8f |
children | 1e657ff2eacb |
line wrap: on
line diff
--- a/libpurple/protocols/msn/slplink.c Mon May 09 22:50:05 2011 +0000 +++ b/libpurple/protocols/msn/slplink.c Mon May 09 22:56:29 2011 +0000 @@ -79,6 +79,7 @@ slplink->slp_seq_id = rand() % 0xFFFFFF00 + 4; slplink->remote_user = g_strdup(username); + slplink->p2p_version = MSN_P2P_VERSION_ONE; slplink->slp_msg_queue = g_queue_new(); @@ -264,6 +265,12 @@ return NULL; } +MsnP2PVersion +msn_slplink_get_p2p_version(MsnSlpLink *slplink) +{ + return slplink->p2p_version; +} + static void msn_slplink_send_part(MsnSlpLink *slplink, MsnSlpMessagePart *part) {