Mercurial > pidgin
annotate src/protocols/msn/slpmsg.h @ 9909:ebca3bbc6719
[gaim-migrate @ 10801]
(12:58:49) nosnilmot: LSchiere: I've got a few patches :) 1) Avoids a g_log
when closing conversations on disconnected accounts
http://nosnilmot.com/patches/gaim-0.83cvs-gtkconv-glog-quieter.patch
(12:59:20) nosnilmot: 2) Some conversation signal fix-lets, which reduces
g_log warnings when closing gaim with conversations open
http://nosnilmot.com/patches/gaim-0.83cvs-conv-signal-fixes.patch
(12:59:45) nosnilmot: 3) Drag-and-drop buddy support for the Invite dialog
: http://nosnilmot.com/patches/gaim-0.83cvs-invite-dnd.patch
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sun, 29 Aug 2004 16:59:47 +0000 |
parents | ab6636c5a136 |
children | 2e01c503aa4f |
rev | line source |
---|---|
9193 | 1 /** |
2 * @file slpmsg.h SLP Message functions | |
3 * | |
4 * gaim | |
5 * | |
9198
ab6636c5a136
[gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents:
9193
diff
changeset
|
6 * Gaim is the legal property of its developers, whose names are too numerous |
ab6636c5a136
[gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents:
9193
diff
changeset
|
7 * to list here. Please refer to the COPYRIGHT file distributed with this |
ab6636c5a136
[gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents:
9193
diff
changeset
|
8 * source distribution. |
ab6636c5a136
[gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents:
9193
diff
changeset
|
9 * |
9193 | 10 * This program is free software; you can redistribute it and/or modify |
11 * it under the terms of the GNU General Public License as published by | |
12 * the Free Software Foundation; either version 2 of the License, or | |
13 * (at your option) any later version. | |
14 * | |
15 * This program is distributed in the hope that it will be useful, | |
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 * GNU General Public License for more details. | |
19 * | |
20 * You should have received a copy of the GNU General Public License | |
21 * along with this program; if not, write to the Free Software | |
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
23 */ | |
24 #ifndef _MSN_SLPMSG_H_ | |
25 #define _MSN_SLPMSG_H_ | |
26 | |
27 typedef struct _MsnSlpMessage MsnSlpMessage; | |
28 | |
29 #include "slpsession.h" | |
30 #include "slpcall.h" | |
31 #include "slplink.h" | |
32 #include "session.h" | |
33 #include "msg.h" | |
34 | |
35 #include "slp.h" | |
36 | |
37 struct _MsnSlpMessage | |
38 { | |
39 MsnSlpSession *slpsession; | |
40 MsnSlpCall *slpcall; | |
41 MsnSlpLink *slplink; | |
42 MsnSession *session; | |
43 | |
44 long session_id; | |
45 long id; | |
46 long ack_id; | |
47 long ack_sub_id; | |
48 long long ack_size; | |
49 long app_id; | |
50 | |
51 gboolean sip; | |
52 #if 0 | |
53 gboolean wasted; | |
54 #endif | |
55 long flags; | |
56 | |
57 FILE *fp; | |
58 char *buffer; | |
59 long long offset; | |
60 long long size; | |
61 | |
62 MsnMessage *msg; /* The temporary real message that will be sent */ | |
63 | |
64 #ifdef DEBUG_SLP | |
65 char *info; | |
66 gboolean text_body; | |
67 #endif | |
68 }; | |
69 | |
70 MsnSlpMessage *msn_slpmsg_new(MsnSlpLink *slplink); | |
71 void msn_slpmsg_destroy(MsnSlpMessage *slpmsg); | |
72 void msn_slpmsg_set_body(MsnSlpMessage *slpmsg, const char *body, | |
73 long long size); | |
74 void msn_slpmsg_open_file(MsnSlpMessage *slpmsg, | |
75 const char *file_name); | |
76 MsnSlpMessage * msn_slpmsg_sip_new(MsnSlpCall *slpcall, int cseq, | |
77 const char *header, | |
78 const char *branch, | |
79 const char *content_type, | |
80 const char *content); | |
81 | |
82 #ifdef DEBUG_SLP | |
83 const void msn_slpmsg_show(MsnMessage *msg); | |
84 #endif | |
85 | |
86 #endif /* _MSN_SLPMSG_H_ */ |