diff src/protocols/msn/slpcall.h @ 10225:ecf3ce2e2ab1

[gaim-migrate @ 11357] This is mostly a patch from Felipe Contreras that eliminates MSN switchboard errors and fixes MSN buddy icon syncronization, with some tweaks by me. Thank Felipe if it works, blame me if something broke. I also fixed a couple of text markup escaping things, fixed a glib warning that was bugging me, fix a rare SILC crash, and make gtkstatusselector.c compile (but do nothing) with gtk < 2.4 committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Sun, 21 Nov 2004 17:48:09 +0000
parents f5f7482678d2
children a7b2fd5efcf2
line wrap: on
line diff
--- a/src/protocols/msn/slpcall.h	Sun Nov 21 06:16:23 2004 +0000
+++ b/src/protocols/msn/slpcall.h	Sun Nov 21 17:48:09 2004 +0000
@@ -28,10 +28,14 @@
 
 typedef void (*MsnSlpCb)(MsnSlpCall *slpcall,
 						 const char *data, long long size);
+typedef void (*MsnSlpEndCb)(MsnSlpCall *slpcall);
 
 #include "slplink.h"
 #include "slpsession.h"
 
+/* The official client seems to timeout slp calls after 5 minutes */
+#define MSN_SLPCALL_TIMEOUT 300000
+
 typedef enum
 {
 	MSN_SLPCALL_ANY,
@@ -66,6 +70,8 @@
 	void (*end_cb)(MsnSlpCall *slpcall);
 	gboolean wasted;
 	gboolean started;
+
+	int timer;
 };
 
 MsnSlpCall *msn_slp_call_new(MsnSlpLink *slplink);
@@ -75,5 +81,6 @@
 void msn_slp_call_invite(MsnSlpCall *slpcall, const char *euf_guid,
 						 int app_id, const char *context);
 void msn_slp_call_close(MsnSlpCall *slpcall);
+gboolean msn_slp_call_timeout(gpointer data);
 
 #endif /* _MSN_SLPCALL_H_ */