changeset 24337:f0160066b58b

Make msn_slp_call_timeout static
author Mark Doliner <mark@kingant.net>
date Thu, 13 Nov 2008 06:57:20 +0000
parents 70e662ef2412
children 9b253ce969d0
files libpurple/protocols/msn/slpcall.c libpurple/protocols/msn/slpcall.h
diffstat 2 files changed, 22 insertions(+), 23 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/slpcall.c	Thu Nov 13 06:43:48 2008 +0000
+++ b/libpurple/protocols/msn/slpcall.c	Thu Nov 13 06:57:20 2008 +0000
@@ -33,6 +33,28 @@
  * Main
  **************************************************************************/
 
+static gboolean
+msn_slp_call_timeout(gpointer data)
+{
+	MsnSlpCall *slpcall;
+
+	slpcall = data;
+
+#ifdef MSN_DEBUG_SLPCALL
+	purple_debug_info("msn", "slpcall_timeout: slpcall(%p)\n", slpcall);
+#endif
+
+	if (!slpcall->pending && !slpcall->progress)
+	{
+		msn_slp_call_destroy(slpcall);
+		return FALSE;
+	}
+
+	slpcall->progress = FALSE;
+
+	return TRUE;
+}
+
 MsnSlpCall *
 msn_slp_call_new(MsnSlpLink *slplink)
 {
@@ -176,28 +198,6 @@
 	msn_slp_call_destroy(slpcall);
 }
 
-gboolean
-msn_slp_call_timeout(gpointer data)
-{
-	MsnSlpCall *slpcall;
-
-	slpcall = data;
-
-#ifdef MSN_DEBUG_SLPCALL
-	purple_debug_info("msn", "slpcall_timeout: slpcall(%p)\n", slpcall);
-#endif
-
-	if (!slpcall->pending && !slpcall->progress)
-	{
-		msn_slp_call_destroy(slpcall);
-		return FALSE;
-	}
-
-	slpcall->progress = FALSE;
-
-	return TRUE;
-}
-
 MsnSlpCall *
 msn_slp_process_msg(MsnSlpLink *slplink, MsnSlpMessage *slpmsg)
 {
--- a/libpurple/protocols/msn/slpcall.h	Thu Nov 13 06:43:48 2008 +0000
+++ b/libpurple/protocols/msn/slpcall.h	Thu Nov 13 06:57:20 2008 +0000
@@ -86,6 +86,5 @@
 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_ */