jingle-ibb/ibb.c
changeset 128 cded9f40039e
parent 127 02dde03e219b
child 130 da01e4b2d7fa
--- a/jingle-ibb/ibb.c	Sun Aug 15 17:35:41 2010 +0200
+++ b/jingle-ibb/ibb.c	Sun Aug 15 22:12:04 2010 +0200
@@ -47,6 +47,7 @@
 static void send(session_content *sc, gconstpointer data, gchar *buf, gsize size);
 static void init(session_content *sc, gconstpointer data);
 static void end(session_content *sc, gconstpointer data);
+static gchar *info(gconstpointer data);
 static void _send_internal(session_content *sc, const gchar *to, gchar *buf,
                            gsize size, const gchar *sid, gint64 *seq);
 
@@ -65,7 +66,8 @@
   .new       = new,
   .send      = send,
   .init      = init,
-  .end       = end
+  .end       = end,
+  .info      = info
 };
 
 module_info_t  info_jingle_inbandbytestream = {
@@ -365,6 +367,13 @@
   return HOOK_HANDLER_RESULT_ALLOW_MORE_HANDLERS;
 }
 
+static gchar *info(gconstpointer data)
+{
+  JingleIBB *jibb = (JingleIBB *)data;
+  gchar *info = g_strdup_printf("IBB %i", jibb->blocksize);
+  return info;
+}
+
 static void jingle_ibb_init(void)
 {
   jingle_ibb_handler = lm_message_handler_new(jingle_ibb_handle_iq, NULL, NULL);