libpurple/protocols/jabber/buddy.c

branch
cpw.malu.client_type
changeset 27287
d3ececcf09d1
parent 27110
05ca719b901b
parent 27286
f637c4c27815
child 27289
32591a46eb78
equal deleted inserted replaced
27110:05ca719b901b 27287:d3ececcf09d1
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 }

mercurial