Mercurial > pidgin.yaz
comparison src/protocols/msn/slpmsg.h @ 9193:502707ca1836
[gaim-migrate @ 9988]
Patch by Felipe Contreras to add MSN file transfer and buddy icons. Please
test and report any bugs!
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sun, 06 Jun 2004 02:39:08 +0000 |
parents | |
children | ab6636c5a136 |
comparison
equal
deleted
inserted
replaced
9192:5655dcd94d0f | 9193:502707ca1836 |
---|---|
1 /** | |
2 * @file slpmsg.h SLP Message functions | |
3 * | |
4 * gaim | |
5 * | |
6 * This program is free software; you can redistribute it and/or modify | |
7 * it under the terms of the GNU General Public License as published by | |
8 * the Free Software Foundation; either version 2 of the License, or | |
9 * (at your option) any later version. | |
10 * | |
11 * This program is distributed in the hope that it will be useful, | |
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 * GNU General Public License for more details. | |
15 * | |
16 * You should have received a copy of the GNU General Public License | |
17 * along with this program; if not, write to the Free Software | |
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
19 */ | |
20 #ifndef _MSN_SLPMSG_H_ | |
21 #define _MSN_SLPMSG_H_ | |
22 | |
23 typedef struct _MsnSlpMessage MsnSlpMessage; | |
24 | |
25 #include "slpsession.h" | |
26 #include "slpcall.h" | |
27 #include "slplink.h" | |
28 #include "session.h" | |
29 #include "msg.h" | |
30 | |
31 #include "slp.h" | |
32 | |
33 struct _MsnSlpMessage | |
34 { | |
35 MsnSlpSession *slpsession; | |
36 MsnSlpCall *slpcall; | |
37 MsnSlpLink *slplink; | |
38 MsnSession *session; | |
39 | |
40 long session_id; | |
41 long id; | |
42 long ack_id; | |
43 long ack_sub_id; | |
44 long long ack_size; | |
45 long app_id; | |
46 | |
47 gboolean sip; | |
48 #if 0 | |
49 gboolean wasted; | |
50 #endif | |
51 long flags; | |
52 | |
53 FILE *fp; | |
54 char *buffer; | |
55 long long offset; | |
56 long long size; | |
57 | |
58 MsnMessage *msg; /* The temporary real message that will be sent */ | |
59 | |
60 #ifdef DEBUG_SLP | |
61 char *info; | |
62 gboolean text_body; | |
63 #endif | |
64 }; | |
65 | |
66 MsnSlpMessage *msn_slpmsg_new(MsnSlpLink *slplink); | |
67 void msn_slpmsg_destroy(MsnSlpMessage *slpmsg); | |
68 void msn_slpmsg_set_body(MsnSlpMessage *slpmsg, const char *body, | |
69 long long size); | |
70 void msn_slpmsg_open_file(MsnSlpMessage *slpmsg, | |
71 const char *file_name); | |
72 MsnSlpMessage * msn_slpmsg_sip_new(MsnSlpCall *slpcall, int cseq, | |
73 const char *header, | |
74 const char *branch, | |
75 const char *content_type, | |
76 const char *content); | |
77 | |
78 #ifdef DEBUG_SLP | |
79 const void msn_slpmsg_show(MsnMessage *msg); | |
80 #endif | |
81 | |
82 #endif /* _MSN_SLPMSG_H_ */ |