From: Ethan B. <ebl...@us...> - 2006-03-10 02:21:04
|
Update of /cvsroot/gaim/gaim/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv664/src Modified Files: blist.c blist.h Log Message: This provides a way to get the root node of the buddy list, as previously the only way was to grab gaimbuddylist->root directly; this is a problem if you want to traverse the buddy list via, e.g., D-bus. Index: blist.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/blist.c,v retrieving revision 1.249 retrieving revision 1.250 diff -u -d -p -r1.249 -r1.250 --- blist.c 7 Mar 2006 02:21:37 -0000 1.249 +++ blist.c 10 Mar 2006 02:20:55 -0000 1.250 @@ -682,6 +682,12 @@ gaim_get_blist() return gaimbuddylist; } +GaimBlistNode * +gaim_blist_get_root() +{ + return gaimbuddylist ? gaimbuddylist->root : NULL; +} + void gaim_blist_show() { GaimBlistUiOps *ops = gaimbuddylist->ui_ops; Index: blist.h =================================================================== RCS file: /cvsroot/gaim/gaim/src/blist.h,v retrieving revision 1.96 retrieving revision 1.97 diff -u -d -p -r1.96 -r1.97 --- blist.h 17 Jan 2006 23:22:18 -0000 1.96 +++ blist.h 10 Mar 2006 02:20:56 -0000 1.97 @@ -213,6 +213,13 @@ void gaim_set_blist(GaimBuddyList *blist GaimBuddyList *gaim_get_blist(void); /** + * Returns the root node of the main buddy list. + * + * @return The root node. + */ +GaimBlistNode *gaim_blist_get_root(void); + +/** * Returns the next node of a given node. This function is to be used to iterate * over the tree returned by gaim_get_blist. * |