Mercurial > pidgin
comparison libpurple/whiteboard.c @ 32000:cea77667da7d
Added protocol_data and ui_data accessor functions for Whiteboard.
author | andrew.victor@mxit.com |
---|---|
date | Tue, 30 Aug 2011 20:43:52 +0000 |
parents | f1437342cc0e |
children | 2bf260b86086 |
comparison
equal
deleted
inserted
replaced
31999:3899615cef8a | 32000:cea77667da7d |
---|---|
204 { | 204 { |
205 if (whiteboard_ui_ops && whiteboard_ui_ops->set_brush) | 205 if (whiteboard_ui_ops && whiteboard_ui_ops->set_brush) |
206 whiteboard_ui_ops->set_brush(wb, size, color); | 206 whiteboard_ui_ops->set_brush(wb, size, color); |
207 } | 207 } |
208 | 208 |
209 void purple_whiteboard_set_protocol_data(PurpleWhiteboard *wb, gpointer proto_data) | |
210 { | |
211 g_return_if_fail(wb != NULL); | |
212 | |
213 wb->proto_data = proto_data; | |
214 } | |
215 | |
216 gpointer purple_whiteboard_get_protocol_data(const PurpleWhiteboard *wb) | |
217 { | |
218 g_return_val_if_fail(wb != NULL, NULL); | |
219 | |
220 return wb->proto_data; | |
221 } | |
222 | |
223 void purple_whiteboard_set_ui_data(PurpleWhiteboard *wb, gpointer ui_data) | |
224 { | |
225 g_return_if_fail(wb != NULL); | |
226 | |
227 wb->ui_data = ui_data; | |
228 } | |
229 | |
230 gpointer purple_whiteboard_get_ui_data(const PurpleWhiteboard *wb) | |
231 { | |
232 g_return_val_if_fail(wb != NULL, NULL); | |
233 | |
234 return wb->ui_data; | |
235 } |