Mercurial > pidgin
annotate src/protocols/msn/buddyicon.h @ 6802:662f5bef41b7
[gaim-migrate @ 7342]
Fixed a nice little MSN bug I introduced where MSN messages weren't fully
getting sent. This caused truncated messages and switchboard disconnects.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Wed, 10 Sep 2003 04:21:15 +0000 |
parents | b7e113a59b51 |
children |
rev | line source |
---|---|
5351 | 1 /** |
2 * @file buddyicon.h Buddy icon support | |
3 * | |
4 * gaim | |
5 * | |
6 * Copyright (C) 2003 Christian Hammond <chipx86@gnupdate.org> | |
6701
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
5506
diff
changeset
|
7 * |
5351 | 8 * This program is free software; you can redistribute it and/or modify |
9 * it under the terms of the GNU General Public License as published by | |
10 * the Free Software Foundation; either version 2 of the License, or | |
11 * (at your option) any later version. | |
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 * You should have received a copy of the GNU General Public License | |
19 * along with this program; if not, write to the Free Software | |
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
21 */ | |
22 #ifndef _MSN_BUDDY_ICON_H_ | |
23 #define _MSN_BUDDY_ICON_H_ | |
24 | |
25 typedef struct _MsnBuddyIconXfer MsnBuddyIconXfer; | |
26 | |
6701
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
5506
diff
changeset
|
27 #include "msg.h" |
5351 | 28 #include "servconn.h" |
6701
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
5506
diff
changeset
|
29 #include "user.h" |
5351 | 30 |
31 /** | |
32 * State of a buddy icon transfer. | |
33 */ | |
34 struct _MsnBuddyIconXfer | |
35 { | |
36 MsnUser *user; /**< The user on the other end of the transfer. */ | |
37 | |
38 gboolean sending; /**< True if sending this icon. */ | |
39 | |
40 size_t bytes_xfer; /**< The current bytes sent or retrieved. */ | |
41 size_t total_size; /**< The total size of the base64 icon data. */ | |
42 size_t file_size; /**< The file size of the actual icon. */ | |
43 | |
44 char *md5sum; /**< The MD5SUM of the icon. */ | |
45 char *data; /**< The buddy icon data. */ | |
46 }; | |
47 | |
48 /** | |
49 * Creates an MsnBuddyIconXfer structure. | |
50 * | |
51 * @return The MsnBuddyIconXfer structure. | |
52 */ | |
53 MsnBuddyIconXfer *msn_buddy_icon_xfer_new(void); | |
54 | |
55 /** | |
56 * Destroys an MsnBuddyIconXfer structure. | |
57 * | |
58 * @param The buddy icon structure. | |
59 */ | |
60 void msn_buddy_icon_xfer_destroy(MsnBuddyIconXfer *xfer); | |
61 | |
62 /** | |
63 * Processed application/x-buddyicon messages. | |
64 * | |
65 * @param servconn The server connection. | |
66 * @param msg The message. | |
67 * | |
68 * @return TRUE | |
69 */ | |
5506
4f72b611f0ee
[gaim-migrate @ 5905]
Christian Hammond <chipx86@chipx86.com>
parents:
5351
diff
changeset
|
70 gboolean msn_buddy_icon_msg(MsnServConn *servconn, MsnMessage *msg); |
5351 | 71 |
72 /** | |
73 * Sends a buddy icon invitation message. | |
74 * | |
75 * @param swboard The switchboard to send to. | |
76 */ | |
77 void msn_buddy_icon_invite(MsnSwitchBoard *swboard); | |
78 | |
79 #endif /* _MSN_BUDDY_ICON_H_ */ |