[Pidgin] #8644: API shouldn't include `purple_blist_get_buddies`
Pidgin
trac at pidgin.im
Thu Mar 12 01:54:49 EDT 2009
#8644: API shouldn't include `purple_blist_get_buddies`
-------------------------+--------------------------------------------------
Reporter: darkrain42 | Owner: datallah
Type: enhancement | Status: new
Component: Bonjour | Version:
Keywords: | Launchpad_bug:
-------------------------+--------------------------------------------------
I don't see a valid use-case for exposing purple_blist_get_buddies. The
key is an opaque structure, so the only use seems to be for iterating over
every buddy in the list
The bonjour plugin seems to use this to map IP to !PurpleBuddy, but a
dedicated hash table there seems much saner.
As a replacement API, I'd propose purple_blist_get_buddies return a
GSList* (freed by caller) of all the buddies in the list.
--
Ticket URL: <http://developer.pidgin.im/ticket/8644>
Pidgin <http://pidgin.im>
Pidgin
More information about the Tracker
mailing list