Mercurial > pidgin.yaz
comparison libpurple/protocols/msn/user.c @ 31434:7bf659dbacee
Clear out the old list of endpoints when we receive a new one. This
will correct the "View Locations" list when we force a location to
sign out.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Thu, 02 Dec 2010 06:04:55 +0000 |
parents | 7300259608c9 |
children | 0a58b4f084fb |
comparison
equal
deleted
inserted
replaced
31433:fc6ecc8f1b34 | 31434:7bf659dbacee |
---|---|
303 ep->clientid = newep->clientid; | 303 ep->clientid = newep->clientid; |
304 ep->extcaps = newep->extcaps; | 304 ep->extcaps = newep->extcaps; |
305 } | 305 } |
306 | 306 |
307 void | 307 void |
308 msn_user_clear_endpoints(MsnUser *user) | |
309 { | |
310 MsnUserEndpoint *ep; | |
311 GSList *l; | |
312 | |
313 g_return_if_fail(user != NULL); | |
314 | |
315 for (l = user->endpoints; l; l = g_slist_delete_link(l, l)) { | |
316 ep = l->data; | |
317 free_user_endpoint(ep); | |
318 } | |
319 | |
320 user->endpoints = NULL; | |
321 } | |
322 | |
323 void | |
308 msn_user_set_op(MsnUser *user, MsnListOp list_op) | 324 msn_user_set_op(MsnUser *user, MsnListOp list_op) |
309 { | 325 { |
310 g_return_if_fail(user != NULL); | 326 g_return_if_fail(user != NULL); |
311 | 327 |
312 user->list_op |= list_op; | 328 user->list_op |= list_op; |