libpurple/protocols/jabber/buddy.c

branch
cpw.malu.client_type
changeset 27284
81ed893ad99d
parent 26958
a955bd42f529
parent 26877
6c551b041119
child 27285
cb00245748c4
equal deleted inserted replaced
26977:feb6f844abcd 27284:81ed893ad99d
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 }

mercurial