| 2448 } |
2448 } |
| 2449 |
2449 |
| 2450 return jabber_resource_has_capability(jbr, cap); |
2450 return jabber_resource_has_capability(jbr, cap); |
| 2451 } |
2451 } |
| 2452 |
2452 |
| |
2453 const gchar * |
| |
2454 jabber_resource_get_identity_category_type(const JabberBuddyResource *jbr, |
| |
2455 const gchar *category) |
| |
2456 { |
| |
2457 const GList *iter = NULL; |
| |
2458 |
| |
2459 if (jbr->caps) { |
| |
2460 for (iter = jbr->caps->identities ; iter ; iter = g_list_next(iter)) { |
| |
2461 const JabberCapsIdentity *identity = |
| |
2462 (JabberCapsIdentity *) iter->data; |
| |
2463 |
| |
2464 if (strcmp(identity->category, category) == 0) { |
| |
2465 return identity->type; |
| |
2466 } |
| |
2467 } |
| |
2468 } |
| |
2469 |
| |
2470 return NULL; |
| |
2471 } |