Mercurial > hg
comparison mcabber/src/roster.c @ 90:ac48ace7ee19
[/trunk] Changeset 104 by mikael
* Add roster_getstatus()
author | mikael |
---|---|
date | Mon, 18 Apr 2005 17:50:11 +0000 |
parents | d39f15683c34 |
children | c6270994fb6e |
comparison
equal
deleted
inserted
replaced
89:d39f15683c34 | 90:ac48ace7ee19 |
---|---|
236 | 236 |
237 roster_usr = (roster*)sl_user->data; | 237 roster_usr = (roster*)sl_user->data; |
238 roster_usr->type = type; | 238 roster_usr->type = type; |
239 } | 239 } |
240 | 240 |
241 enum imstatus roster_getstatus(const char *jid) | |
242 { | |
243 GSList *sl_user; | |
244 roster *roster_usr; | |
245 | |
246 sl_user = roster_find(jid, jidsearch, ROSTER_TYPE_USER|ROSTER_TYPE_AGENT); | |
247 if (sl_user == NULL) | |
248 return offline; // Not in the roster, anyway... | |
249 | |
250 roster_usr = (roster*)sl_user->data; | |
251 return roster_usr->status; | |
252 } | |
253 | |
241 guint roster_gettype(const char *jid) | 254 guint roster_gettype(const char *jid) |
242 { | 255 { |
243 GSList *sl_user; | 256 GSList *sl_user; |
244 roster *roster_usr; | 257 roster *roster_usr; |
245 | 258 |