| 2517 } |
2517 } |
| 2518 |
2518 |
| 2519 return jabber_resource_has_capability(jbr, cap); |
2519 return jabber_resource_has_capability(jbr, cap); |
| 2520 } |
2520 } |
| 2521 |
2521 |
| |
2522 const gchar * |
| |
2523 jabber_resource_get_identity_category_type(const JabberBuddyResource *jbr, |
| |
2524 const gchar *category) |
| |
2525 { |
| |
2526 const GList *iter = NULL; |
| |
2527 |
| |
2528 if (jbr->caps.info) { |
| |
2529 for (iter = jbr->caps.info->identities ; iter ; iter = g_list_next(iter)) { |
| |
2530 const JabberIdentity *identity = |
| |
2531 (JabberIdentity *) iter->data; |
| |
2532 |
| |
2533 if (strcmp(identity->category, category) == 0) { |
| |
2534 return identity->type; |
| |
2535 } |
| |
2536 } |
| |
2537 } |
| |
2538 |
| |
2539 return NULL; |
| |
2540 } |