Mercurial > pidgin
comparison libpurple/protocols/bonjour/buddy.h @ 19573:affacee881e8
Fix a couple potential leaks and prevent the avahi record resolver from being freed multiple times.
Thanks to Lennart from the Avahi team for suggestions on how to improve the avahi implementation.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Sun, 02 Sep 2007 17:54:44 +0000 |
parents | f773aa054dca |
children | 44b4e8bd759b |
comparison
equal
deleted
inserted
replaced
19572:cfc4e56a6a1e | 19573:affacee881e8 |
---|---|
90 */ | 90 */ |
91 gboolean bonjour_buddy_check(BonjourBuddy *buddy); | 91 gboolean bonjour_buddy_check(BonjourBuddy *buddy); |
92 | 92 |
93 /** | 93 /** |
94 * If the buddy doesn't previoulsy exists, it is created. Else, its data is changed (???) | 94 * If the buddy doesn't previoulsy exists, it is created. Else, its data is changed (???) |
95 * purple_buddy is optional; it saves an additional lookup if we already have it | |
95 */ | 96 */ |
96 void bonjour_buddy_add_to_purple(BonjourBuddy *buddy); | 97 void bonjour_buddy_add_to_purple(BonjourBuddy *bonjour_buddy, PurpleBuddy *purple_buddy); |
97 | 98 |
98 /** | 99 /** |
99 * We got the buddy icon data; deal with it | 100 * We got the buddy icon data; deal with it |
100 */ | 101 */ |
101 void bonjour_buddy_got_buddy_icon(BonjourBuddy *buddy, gconstpointer data, gsize len); | 102 void bonjour_buddy_got_buddy_icon(BonjourBuddy *buddy, gconstpointer data, gsize len); |