Mercurial > pidgin.yaz
diff libpurple/whiteboard.c @ 32464:2bf260b86086
Add additional accessor functions for Whiteboard.
author | andrew.victor@mxit.com |
---|---|
date | Tue, 30 Aug 2011 22:02:29 +0000 |
parents | cea77667da7d |
children | 46177ee4af40 |
line wrap: on
line diff
--- a/libpurple/whiteboard.c Tue Aug 30 21:00:29 2011 +0000 +++ b/libpurple/whiteboard.c Tue Aug 30 22:02:29 2011 +0000 @@ -90,6 +90,34 @@ g_free(wb); } +PurpleAccount *purple_whiteboard_get_account(const PurpleWhiteboard *wb) +{ + g_return_val_if_fail(wb != NULL, NULL); + + return wb->account; +} + +const char *purple_whiteboard_get_who(const PurpleWhiteboard *wb) +{ + g_return_val_if_fail(wb != NULL, NULL); + + return wb->who; +} + +void purple_whiteboard_set_state(PurpleWhiteboard *wb, int state) +{ + g_return_if_fail(wb != NULL); + + wb->state = state; +} + +int purple_whiteboard_get_state(const PurpleWhiteboard *wb) +{ + g_return_val_if_fail(wb != NULL, -1); + + return wb->state; +} + void purple_whiteboard_start(PurpleWhiteboard *wb) { /* Create frontend for whiteboard */ @@ -206,6 +234,20 @@ whiteboard_ui_ops->set_brush(wb, size, color); } +GList *purple_whiteboard_get_draw_list(const PurpleWhiteboard *wb) +{ + g_return_val_if_fail(wb != NULL, NULL); + + return wb->draw_list; +} + +void purple_whiteboard_set_draw_list(PurpleWhiteboard *wb, GList* draw_list) +{ + g_return_if_fail(wb != NULL); + + wb->draw_list = draw_list; +} + void purple_whiteboard_set_protocol_data(PurpleWhiteboard *wb, gpointer proto_data) { g_return_if_fail(wb != NULL);