comparison libpurple/protocols/silc10/wb.h @ 32819:2c6510167895 default tip

propagate from branch 'im.pidgin.pidgin.2.x.y' (head 3315c5dfbd0ad16511bdcf865e5b07c02d07df24) to branch 'im.pidgin.pidgin' (head cbd1eda6bcbf0565ae7766396bb8f6f419cb6a9a)
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sat, 02 Jun 2012 02:30:49 +0000
parents 01ff09d4a463 071a0e568ac5
children
comparison
equal deleted inserted replaced
32818:01ff09d4a463 32819:2c6510167895
1 /*
2
3 silcpurple.h
4
5 Author: Pekka Riikonen <priikone@silcnet.org>
6
7 Copyright (C) 2005 Pekka Riikonen
8
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; version 2 of the License.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 */
19
20 #ifndef SILCPURPLE_WB_H
21 #define SILCPURPLE_WB_H
22
23 #include "silcpurple.h"
24 #include "whiteboard.h"
25
26 PurpleWhiteboard *
27 silcpurple_wb_init(SilcPurple sg, SilcClientEntry client_entry);
28 PurpleWhiteboard *
29 silcpurple_wb_init_ch(SilcPurple sg, SilcChannelEntry channel);
30 void silcpurple_wb_receive(SilcClient client, SilcClientConnection conn,
31 SilcClientEntry sender, SilcMessagePayload payload,
32 SilcMessageFlags flags, const unsigned char *message,
33 SilcUInt32 message_len);
34 void silcpurple_wb_receive_ch(SilcClient client, SilcClientConnection conn,
35 SilcClientEntry sender, SilcChannelEntry channel,
36 SilcMessagePayload payload,
37 SilcMessageFlags flags,
38 const unsigned char *message,
39 SilcUInt32 message_len);
40 void silcpurple_wb_start(PurpleWhiteboard *wb);
41 void silcpurple_wb_end(PurpleWhiteboard *wb);
42 void silcpurple_wb_get_dimensions(const PurpleWhiteboard *wb, int *width, int *height);
43 void silcpurple_wb_set_dimensions(PurpleWhiteboard *wb, int width, int height);
44 void silcpurple_wb_get_brush(const PurpleWhiteboard *wb, int *size, int *color);
45 void silcpurple_wb_set_brush(PurpleWhiteboard *wb, int size, int color);
46 void silcpurple_wb_send(PurpleWhiteboard *wb, GList *draw_list);
47 void silcpurple_wb_clear(PurpleWhiteboard *wb);
48
49 #endif /* SILCPURPLE_WB_H */