--- a/jingle/register.c Wed Jul 21 17:19:28 2010 +0200
+++ b/jingle/register.c Wed Jul 21 17:43:46 2010 +0200
@@ -108,7 +108,7 @@
/**
* Determine which transport is better suited for a given app.
*/
-JingleTransportFuncs *jingle_transport_for_app(const gchar *appxmlns, GSList *forbid)
+JingleTransportFuncs *jingle_transport_for_app(const gchar *appxmlns, GSList **forbid)
{
AppHandlerEntry *app = jingle_find_app(appxmlns);
GSList *entry;
@@ -124,7 +124,7 @@
thistransport = (TransportHandlerEntry *) entry->data;
// Look if it's forbidden
- if (g_slist_find_custom(forbid, thistransport->xmlns, cmp_forbid))
+ if (g_slist_find_custom(*forbid, thistransport->xmlns, cmp_forbid))
continue;
if (thistransport->priority > bestprio) {
@@ -132,7 +132,7 @@
besttransport = thistransport;
}
}
-
+ *forbid = g_slist_append(*forbid, besttransport->xmlns);
return besttransport->funcs;
}