Mercurial > pidgin.yaz
diff src/protocols/msn/switchboard.h @ 10773:888d4c328be5
[gaim-migrate @ 12382]
Patch 1149564 from Felipe Contreras:
"[MSN] Cleanups and fixes
I know it fixes a multiple conversation close
notification but it probably fixes more stuff.
I don't know exactly what are the diferences with what
Stu did."
I munged it a bit, to make it compile and stuff.
Please test this, I might have broken it.
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sat, 02 Apr 2005 16:38:33 +0000 |
parents | fe919915fceb |
children | 95fa774d216d |
line wrap: on
line diff
--- a/src/protocols/msn/switchboard.h Sat Apr 02 16:07:20 2005 +0000 +++ b/src/protocols/msn/switchboard.h Sat Apr 02 16:38:33 2005 +0000 @@ -54,7 +54,8 @@ */ typedef enum { - MSN_SB_FLAG_FT = 0x01, /**< This switchboard is being used for file transfer. */ + MSN_SB_FLAG_IM = 0x01, /**< This switchboard is being used for a conversation. */ + MSN_SB_FLAG_FT = 0x02, /**< This switchboard is being used for file transfer. */ } MsnSBFlag; @@ -86,6 +87,8 @@ ready to be used. */ gboolean closed; /**< A flag that states if the switchboard has been closed by the user. */ + gboolean destroying; /**< A flag that states if the switchboard is + alredy on the process of destruction. */ int current_users; int total_users; @@ -207,6 +210,16 @@ void msn_switchboard_close(MsnSwitchBoard *swboard); /** + * Release a switchboard from a certain function. + * + * @param swboard The switchboard to release. + * @param flag The flag that states the function. + * + * @return @c TRUE if the switchboard was closed, @c FALSE otherwise. + */ +gboolean msn_switchboard_release(MsnSwitchBoard *swboard, MsnSBFlag flag); + +/** * Returns whether or not we currently can send a message through this * switchboard. *