equal
deleted
inserted
replaced
115 GSList *entry; |
115 GSList *entry; |
116 TransportHandlerEntry *thistransport, *besttransport = NULL; |
116 TransportHandlerEntry *thistransport, *besttransport = NULL; |
117 JingleTransportPriority bestprio = JINGLE_TRANSPORT_NONE; |
117 JingleTransportPriority bestprio = JINGLE_TRANSPORT_NONE; |
118 JingleTransportType requestedtype; |
118 JingleTransportType requestedtype; |
119 |
119 |
120 if (entry == NULL) |
120 if (app == NULL) |
121 return NULL; |
121 return NULL; |
122 |
122 |
123 requestedtype = app->transtype; |
123 requestedtype = app->transtype; |
124 for (entry = jingle_transport_handlers; entry; entry = entry->next) { |
124 for (entry = jingle_transport_handlers; entry; entry = entry->next) { |
125 thistransport = (TransportHandlerEntry *) entry->data; |
125 thistransport = (TransportHandlerEntry *) entry->data; |
137 } |
137 } |
138 |
138 |
139 if (forbid != NULL) |
139 if (forbid != NULL) |
140 *forbid = g_slist_append(*forbid, besttransport->xmlns); |
140 *forbid = g_slist_append(*forbid, besttransport->xmlns); |
141 |
141 |
142 return besttransport != NULL?besttransport->xmlns:NULL; |
142 return besttransport != NULL ? besttransport->xmlns : NULL; |
143 } |
143 } |
144 |
144 |
145 /** |
145 /** |
146 * This function should work with AppHandlerEntry and |
146 * This function should work with AppHandlerEntry and |
147 * TransportHandlerEntry as long as both start with xmlns. |
147 * TransportHandlerEntry as long as both start with xmlns. |