Mercurial > pidgin.yaz
diff libpurple/protocols/msn/p2p.c @ 31306:5964f65c17ed
Avoid duplicated code using a util function to check the flags.
author | masca@cpw.pidgin.im |
---|---|
date | Thu, 05 Aug 2010 23:42:42 +0000 |
parents | 3ccddae82532 |
children | 72e6fa6caecc |
line wrap: on
line diff
--- a/libpurple/protocols/msn/p2p.c Thu Aug 05 23:16:49 2010 +0000 +++ b/libpurple/protocols/msn/p2p.c Thu Aug 05 23:42:42 2010 +0000 @@ -67,3 +67,10 @@ return wire; } +gboolean +msn_p2p_msg_is_data(const MsnP2PHeaderFlag flags) +{ + return (flags == P2P_MSN_OBJ_DATA || + flags == (P2P_WML2009_COMP | P2P_MSN_OBJ_DATA) || + flags == P2P_FILE_DATA); +}