diff src/protocols/msn/session.h @ 10602:f52ab405f1ab

[gaim-migrate @ 12032] This is patch 1112281 from Felipe Contreras, it prevents file transfers being cancelled when closing a conversation window with the sender/recipient. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Wed, 16 Feb 2005 20:14:12 +0000
parents fed2a7c2471d
children fe919915fceb
line wrap: on
line diff
--- a/src/protocols/msn/session.h	Wed Feb 16 03:57:23 2005 +0000
+++ b/src/protocols/msn/session.h	Wed Feb 16 20:14:12 2005 +0000
@@ -155,21 +155,41 @@
  */
 void msn_session_disconnect(MsnSession *session);
 
+ /**
+ * Finds a switchboard with the given username.
+ *
+ * @param session The MSN session.
+ * @param username The username to search for.
+ * @param flag The flag of the switchboard.
+ *
+ * @return The switchboard, if found.
+ */
+MsnSwitchBoard *msn_session_find_swboard(MsnSession *session,
+										 const char *username, MsnSBFlag flag);
+
 /**
  * Finds a switchboard with the given chat ID.
  *
  * @param session The MSN session.
  * @param chat_id The chat ID to search for.
+ * @param flag The flag of the switchboard.
  *
  * @return The switchboard, if found.
  */
-MsnSwitchBoard *msn_session_find_switch_with_id(const MsnSession *session,
-												int chat_id);
+MsnSwitchBoard *msn_session_find_swboard_with_id(const MsnSession *session,
+												 int chat_id, MsnSBFlag flag);
 
-MsnSwitchBoard *msn_session_find_swboard(MsnSession *session,
-										 const char *username);
+/**
+ * Returns a switchboard to communicate with certain username.
+ *
+ * @param session The MSN session.
+ * @param username The username to search for.
+ * @param flag The flag of the switchboard.
+ *
+ * @return The switchboard.
+ */
 MsnSwitchBoard *msn_session_get_swboard(MsnSession *session,
-										const char *username);
+										const char *username, MsnSBFlag flag);
 
 /**
  * Sets an error for the MSN session.