jingle/sessions.c
changeset 104 060e69633902
parent 103 c34b513be8d9
child 105 c31988e107b3
equal deleted inserted replaced
103:c34b513be8d9 104:060e69633902
   272   content->appfuncs->tomessage(content->description, node);
   272   content->appfuncs->tomessage(content->description, node);
   273 }
   273 }
   274 
   274 
   275 void handle_app_data(const gchar *sid, const gchar *from, const gchar *name, gchar *data, gsize size)
   275 void handle_app_data(const gchar *sid, const gchar *from, const gchar *name, gchar *data, gsize size)
   276 {
   276 {
   277   // TODO: verify that the module is always loaded
   277   // TODO: check that the module is always loaded
   278   JingleSession *sess = session_find_by_sid(sid, from);
   278   JingleSession *sess = session_find_by_sid(sid, from);
   279   SessionContent *sc = session_find_sessioncontent(sess, name);
   279   SessionContent *sc = session_find_sessioncontent(sess, name);
   280 sc->transfuncs->send(sess->to, sc->transport, data, size);
   280   sc->transfuncs->send(sess->to, sc->transport, data, size);
   281 }
   281 }