equal
deleted
inserted
replaced
196 * be called back when a message we sent was acknowledged by its recipient. |
196 * be called back when a message we sent was acknowledged by its recipient. |
197 */ |
197 */ |
198 LmMessageHandler *jingle_new_ack_handler(JingleAckHandle *ah) |
198 LmMessageHandler *jingle_new_ack_handler(JingleAckHandle *ah) |
199 { |
199 { |
200 if(ack_timeout_checker == 0) |
200 if(ack_timeout_checker == 0) |
201 ack_timeout_checker = g_timeout_add_seconds(3, jingle_ack_timeout_checker, NULL); |
201 ack_timeout_checker = g_timeout_add_seconds(3, jingle_ack_timeout_checker, NULL); |
202 |
202 |
203 ah->_inserted = time(NULL); |
203 ah->_inserted = time(NULL); |
204 ah->_handler = lm_message_handler_new(jingle_handle_ack_iq, |
204 ah->_handler = lm_message_handler_new(jingle_handle_ack_iq, |
205 (gpointer) ah, NULL); |
205 (gpointer) ah, NULL); |
206 ack_handlers = g_slist_append(ack_handlers, ah); |
206 ack_handlers = g_slist_append(ack_handlers, ah); |
358 found = TRUE; |
358 found = TRUE; |
359 for (indexns = 0; ns[indexns]; indexns++) { |
359 for (indexns = 0; ns[indexns]; indexns++) { |
360 gchar *tmp = buddy_resource_getcaps(roster_usr->data, thisres->data); |
360 gchar *tmp = buddy_resource_getcaps(roster_usr->data, thisres->data); |
361 if (!caps_has_feature(tmp, (gchar *)ns[indexns])) |
361 if (!caps_has_feature(tmp, (gchar *)ns[indexns])) |
362 found = FALSE; |
362 found = FALSE; |
363 } |
363 } |
364 if (!found) continue; |
364 if (!found) continue; |
365 |
365 |
366 choosenres = g_strdup(thisres->data); |
366 choosenres = g_strdup(thisres->data); |
367 g_slist_foreach(reslist, (GFunc)g_free, NULL); |
367 g_slist_foreach(reslist, (GFunc)g_free, NULL); |
368 g_slist_free(reslist); |
368 g_slist_free(reslist); |
369 return choosenres; |
369 return choosenres; |