Mercurial > pidgin
comparison libpurple/blist.c @ 22219:797230b3e48e
Add accessor and update finch to not touch the internals of PurpleBuddy and PurpleChat.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sun, 27 Jan 2008 04:06:39 +0000 |
parents | 6bb29f94862c |
children | edca47ee06c5 |
comparison
equal
deleted
inserted
replaced
22218:5152a14d06a3 | 22219:797230b3e48e |
---|---|
2258 g_return_val_if_fail(chat != NULL, NULL); | 2258 g_return_val_if_fail(chat != NULL, NULL); |
2259 | 2259 |
2260 return chat->account; | 2260 return chat->account; |
2261 } | 2261 } |
2262 | 2262 |
2263 GHashTable * | |
2264 purple_chat_get_components(PurpleChat *chat) | |
2265 { | |
2266 g_return_val_if_fail(chat != NULL, NULL); | |
2267 | |
2268 return chat->components; | |
2269 } | |
2270 | |
2263 PurpleContact *purple_buddy_get_contact(PurpleBuddy *buddy) | 2271 PurpleContact *purple_buddy_get_contact(PurpleBuddy *buddy) |
2264 { | 2272 { |
2265 g_return_val_if_fail(buddy != NULL, NULL); | 2273 g_return_val_if_fail(buddy != NULL, NULL); |
2266 | 2274 |
2267 return (PurpleContact*)((PurpleBlistNode*)buddy)->parent; | 2275 return (PurpleContact*)((PurpleBlistNode*)buddy)->parent; |