Little commit
authorNicolas Cornu <nicolas.cornu@ensi-bourges.fr>
Mon, 26 Jul 2010 02:33:27 +0200
changeset 74 7f0e16bb1768
parent 73 6f061c11acfb
child 75 bd48c89b0a3d
Little commit
jingle-filetransfer/filetransfer.c
jingle/jingle.h
--- a/jingle-filetransfer/filetransfer.c	Mon Jul 26 01:17:48 2010 +0200
+++ b/jingle-filetransfer/filetransfer.c	Mon Jul 26 02:33:27 2010 +0200
@@ -31,6 +31,7 @@
 #include <mcabber/logprint.h>
 #include <mcabber/compl.h>
 #include <mcabber/commands.h>
+#include <mcabber/roster.h>
 
 #include <jingle/jingle.h>
 #include <jingle/check.h>
@@ -240,6 +241,9 @@
       jft->hash = g_strdup(g_checksum_get_string(md5));
       g_io_channel_seek_position (jft->outfile, 0, G_SEEK_SET, NULL);
       session_add_app(sess, "file", NS_JINGLE_APP_FT, jft);
+      
+      jingle_handle_app(sess, "file", NS_JINGLE_APP_FT, jft, CURRENT_JID);
+      
       g_checksum_free(md5);
       g_free(sid);
       
--- a/jingle/jingle.h	Mon Jul 26 01:17:48 2010 +0200
+++ b/jingle/jingle.h	Mon Jul 26 02:33:27 2010 +0200
@@ -4,6 +4,7 @@
 #include <glib.h>
 #include <loudmouth/loudmouth.h>
 
+
 #define NS_JINGLE "urn:xmpp:jingle:1"
 #define NS_JINGLE_ERRORS "urn:xmpp:jingle:errors:1"
 
@@ -138,5 +139,10 @@
 void handle_trans_data(const gchar *xmlns, gconstpointer data, const gchar *data2, guint len);
 
 gchar *new_sid(void);
+
+void jingle_handle_app(JingleSession *sess, const gchar *name,
+                       const gchar *xmlns_app, gconstpointer app,
+                       const gchar *to);
+
                                          
 #endif