changeset 25698:dfa7c7f676b2

Hide unnecessarily exposed Jingle handler functions
author Mike Ruprecht <maiku@soc.pidgin.im>
date Thu, 10 Jul 2008 22:54:18 +0000
parents 4e3cc48cdace
children 301bb7478f74
files libpurple/protocols/jabber/jingle.c libpurple/protocols/jabber/jingle.h
diffstat 2 files changed, 6 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jingle.c	Thu Jul 10 22:49:52 2008 +0000
+++ b/libpurple/protocols/jabber/jingle.c	Thu Jul 10 22:54:18 2008 +0000
@@ -1120,7 +1120,7 @@
 	g_list_free(values);
 }
 
-void
+static void
 jabber_jingle_session_handle_content_replace(JabberStream *js, xmlnode *packet)
 {
 #if 0
@@ -1149,7 +1149,7 @@
 #endif
 }
 
-void
+static void
 jabber_jingle_session_handle_session_accept(JabberStream *js, xmlnode *packet)
 {
 	JabberIq *result = jabber_iq_new(js, JABBER_IQ_RESULT);
@@ -1243,14 +1243,14 @@
 	jabber_jingle_session_set_state(session, ACTIVE);
 }
 
-void
+static void
 jabber_jingle_session_handle_session_info(JabberStream *js, xmlnode *packet)
 {
 	purple_debug_info("jingle", "got session-info\n");
 	jabber_iq_send(jabber_jingle_session_create_ack(js, packet));
 }
 
-void 
+static void 
 jabber_jingle_session_handle_session_initiate(JabberStream *js, xmlnode *packet)
 {
 	JingleSession *session = NULL;
@@ -1344,7 +1344,7 @@
 	purple_media_got_request(jabber_jingle_session_get_media(session));
 }
 
-void
+static void
 jabber_jingle_session_handle_session_terminate(JabberStream *js, xmlnode *packet)
 {
 	xmlnode *jingle = xmlnode_get_child(packet, "jingle");
@@ -1365,7 +1365,7 @@
 	jabber_jingle_session_destroy(session);
 }
 
-void
+static void
 jabber_jingle_session_handle_transport_info(JabberStream *js, xmlnode *packet)
 {
 	JabberIq *result = jabber_iq_new(js, JABBER_IQ_RESULT);
--- a/libpurple/protocols/jabber/jingle.h	Thu Jul 10 22:49:52 2008 +0000
+++ b/libpurple/protocols/jabber/jingle.h	Thu Jul 10 22:54:18 2008 +0000
@@ -42,14 +42,6 @@
 void jabber_jingle_session_terminate_session_media(JabberStream *js, const gchar *who);
 void jabber_jingle_session_terminate_sessions(JabberStream *js);
 
-/* Jingle message handlers */
-void jabber_jingle_session_handle_content_replace(JabberStream *js, xmlnode *packet);
-void jabber_jingle_session_handle_session_accept(JabberStream *js, xmlnode *packet);
-void jabber_jingle_session_handle_session_info(JabberStream *js, xmlnode *packet);
-void jabber_jingle_session_handle_session_initiate(JabberStream *js, xmlnode *packet);
-void jabber_jingle_session_handle_session_terminate(JabberStream *js, xmlnode *packet);
-void jabber_jingle_session_handle_transport_info(JabberStream *js, xmlnode *packet);
-
 G_END_DECLS
 
 #endif /* USE_VV */