diff libpurple/protocols/msn/servconn.h @ 27701:4fb5e292de75

Timeout switchboard connections at 60 seconds, should Fixes #3330 for most people.
author Ka-Hing Cheung <khc@hxbc.us>
date Sun, 19 Jul 2009 17:41:38 +0000
parents d8452c0bec7b
children 8e31eec7b621
line wrap: on
line diff
--- a/libpurple/protocols/msn/servconn.h	Sun Jul 19 17:35:06 2009 +0000
+++ b/libpurple/protocols/msn/servconn.h	Sun Jul 19 17:41:38 2009 +0000
@@ -88,6 +88,8 @@
 
 	PurpleCircBuffer *tx_buf;
 	guint tx_handler;
+	guint timeout_sec;
+	guint timeout_handle;
 
 	void (*connect_cb)(MsnServConn *); /**< The callback to call when connecting. */
 	void (*disconnect_cb)(MsnServConn *); /**< The callback to call when disconnecting. */
@@ -178,4 +180,12 @@
  */
 void msn_servconn_process_data(MsnServConn *servconn);
 
+/**
+ * Set a idle timeout fot this servconn
+ *
+ * @param servconn The servconn
+ * @param seconds The idle timeout in seconds
+ */
+void msn_servconn_set_idle_timeout(MsnServConn *servconn, guint seconds);
+
 #endif /* _MSN_SERVCONN_H_ */