buddy: add interfaces for obsolete buddy cleanup
commitdcaa8a009d9f61593d8aca7b70201728089c94d0
authorStefan Becker <chemobejk@gmail.com>
Sat, 17 Aug 2013 20:42:27 +0000 (17 23:42 +0300)
committerStefan Becker <chemobejk@gmail.com>
Sat, 17 Aug 2013 20:42:27 +0000 (17 23:42 +0300)
treea80a2ec4d2d6353bde24c236de0c4bf1315443a9
parent0824890e0c933b2954213a6cab452c0c33f30d4a
buddy: add interfaces for obsolete buddy cleanup

First step towards full support for UCS contact list updates. Before we
process the updated list we set the obsolete flag on all buddies. When a
buddy is still on the list this flag gets reset. After processing the
list we remove all buddies that have the obsolete flag still set.

This handles the case when a buddy has been removed from all groups by
another client.
src/core/sipe-buddy.c
src/core/sipe-buddy.h
src/core/sipe-ucs.c