Mercurial > pidgin
comparison libpurple/blist.c @ 22168:2bff44d78523
Add some accessor functions for PurpleBlistNode.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Mon, 21 Jan 2008 19:43:55 +0000 |
parents | c38d72677c8a |
children | 8c5d0180c326 |
comparison
equal
deleted
inserted
replaced
22154:f577201bf30f | 22168:2bff44d78523 |
---|---|
751 !purple_account_is_connected(purple_buddy_get_account((PurpleBuddy *)ret))); | 751 !purple_account_is_connected(purple_buddy_get_account((PurpleBuddy *)ret))); |
752 | 752 |
753 return ret; | 753 return ret; |
754 } | 754 } |
755 | 755 |
756 PurpleBlistNode *purple_blist_node_get_parent(PurpleBlistNode *node) | |
757 { | |
758 return node ? node->parent : NULL; | |
759 } | |
760 | |
761 PurpleBlistNode *purple_blist_node_get_first_child(PurpleBlistNode *node) | |
762 { | |
763 return node ? node->child : NULL; | |
764 } | |
765 | |
766 PurpleBlistNode *purple_blist_node_get_sibling_next(PurpleBlistNode *node) | |
767 { | |
768 return node? node->next : NULL; | |
769 } | |
770 | |
756 void | 771 void |
757 purple_blist_update_buddy_status(PurpleBuddy *buddy, PurpleStatus *old_status) | 772 purple_blist_update_buddy_status(PurpleBuddy *buddy, PurpleStatus *old_status) |
758 { | 773 { |
759 PurpleBlistUiOps *ops = purple_blist_get_ui_ops(); | 774 PurpleBlistUiOps *ops = purple_blist_get_ui_ops(); |
760 PurplePresence *presence; | 775 PurplePresence *presence; |