Mercurial > pidgin.yaz
annotate libpurple/protocols/msn/p2p.h @ 31676:cb04febce5e4
propagate from branch 'im.pidgin.cipher_breakout' (head ba76b36ed3711f14953e16ce66b3b6ae28d03161)
to branch 'im.pidgin.pidgin' (head d11be8f4847a7fa0b26ef5525b92f7f2339a7f19)
author | Gary Kramlich <grim@reaperworld.com> |
---|---|
date | Fri, 18 Feb 2011 02:54:38 +0000 |
parents | 34da321b60f1 |
children | 9562a7baa9e4 |
rev | line source |
---|---|
31412
72e6fa6caecc
These new files are missing GPL headers. And fix a couple incorrect
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31306
diff
changeset
|
1 /** |
72e6fa6caecc
These new files are missing GPL headers. And fix a couple incorrect
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31306
diff
changeset
|
2 * @file p2p.h MSN P2P functions |
72e6fa6caecc
These new files are missing GPL headers. And fix a couple incorrect
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31306
diff
changeset
|
3 * |
72e6fa6caecc
These new files are missing GPL headers. And fix a couple incorrect
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31306
diff
changeset
|
4 * purple |
72e6fa6caecc
These new files are missing GPL headers. And fix a couple incorrect
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31306
diff
changeset
|
5 * |
72e6fa6caecc
These new files are missing GPL headers. And fix a couple incorrect
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31306
diff
changeset
|
6 * Purple is the legal property of its developers, whose names are too numerous |
72e6fa6caecc
These new files are missing GPL headers. And fix a couple incorrect
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31306
diff
changeset
|
7 * to list here. Please refer to the COPYRIGHT file distributed with this |
72e6fa6caecc
These new files are missing GPL headers. And fix a couple incorrect
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31306
diff
changeset
|
8 * source distribution. |
72e6fa6caecc
These new files are missing GPL headers. And fix a couple incorrect
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31306
diff
changeset
|
9 * |
72e6fa6caecc
These new files are missing GPL headers. And fix a couple incorrect
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31306
diff
changeset
|
10 * This program is free software; you can redistribute it and/or modify |
72e6fa6caecc
These new files are missing GPL headers. And fix a couple incorrect
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31306
diff
changeset
|
11 * it under the terms of the GNU General Public License as published by |
72e6fa6caecc
These new files are missing GPL headers. And fix a couple incorrect
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31306
diff
changeset
|
12 * the Free Software Foundation; either version 2 of the License, or |
72e6fa6caecc
These new files are missing GPL headers. And fix a couple incorrect
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31306
diff
changeset
|
13 * (at your option) any later version. |
72e6fa6caecc
These new files are missing GPL headers. And fix a couple incorrect
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31306
diff
changeset
|
14 * |
72e6fa6caecc
These new files are missing GPL headers. And fix a couple incorrect
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31306
diff
changeset
|
15 * This program is distributed in the hope that it will be useful, |
72e6fa6caecc
These new files are missing GPL headers. And fix a couple incorrect
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31306
diff
changeset
|
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
72e6fa6caecc
These new files are missing GPL headers. And fix a couple incorrect
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31306
diff
changeset
|
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
72e6fa6caecc
These new files are missing GPL headers. And fix a couple incorrect
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31306
diff
changeset
|
18 * GNU General Public License for more details. |
72e6fa6caecc
These new files are missing GPL headers. And fix a couple incorrect
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31306
diff
changeset
|
19 * |
72e6fa6caecc
These new files are missing GPL headers. And fix a couple incorrect
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31306
diff
changeset
|
20 * You should have received a copy of the GNU General Public License |
72e6fa6caecc
These new files are missing GPL headers. And fix a couple incorrect
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31306
diff
changeset
|
21 * along with this program; if not, write to the Free Software |
72e6fa6caecc
These new files are missing GPL headers. And fix a couple incorrect
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31306
diff
changeset
|
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
72e6fa6caecc
These new files are missing GPL headers. And fix a couple incorrect
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31306
diff
changeset
|
23 */ |
72e6fa6caecc
These new files are missing GPL headers. And fix a couple incorrect
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31306
diff
changeset
|
24 |
31201 | 25 #ifndef MSN_P2P_H |
26 #define MSN_P2P_H | |
27 | |
28 typedef struct { | |
29 guint32 session_id; | |
31202
d4869cd86680
Chang member name so it is compatible with MsnSlpHeader struct names.
masca@cpw.pidgin.im
parents:
31201
diff
changeset
|
30 guint32 id; |
31301
16ab805406d1
Get rid of the offset field in the SlpMessage in favor of the one in the Header.
masca@cpw.pidgin.im
parents:
31286
diff
changeset
|
31 /** |
16ab805406d1
Get rid of the offset field in the SlpMessage in favor of the one in the Header.
masca@cpw.pidgin.im
parents:
31286
diff
changeset
|
32 * In a MsnSlpMessage: |
16ab805406d1
Get rid of the offset field in the SlpMessage in favor of the one in the Header.
masca@cpw.pidgin.im
parents:
31286
diff
changeset
|
33 * For outgoing messages this is the number of bytes from buffer that |
16ab805406d1
Get rid of the offset field in the SlpMessage in favor of the one in the Header.
masca@cpw.pidgin.im
parents:
31286
diff
changeset
|
34 * have already been sent out. For incoming messages this is the |
16ab805406d1
Get rid of the offset field in the SlpMessage in favor of the one in the Header.
masca@cpw.pidgin.im
parents:
31286
diff
changeset
|
35 * number of bytes that have been written to buffer. |
16ab805406d1
Get rid of the offset field in the SlpMessage in favor of the one in the Header.
masca@cpw.pidgin.im
parents:
31286
diff
changeset
|
36 */ |
31201 | 37 guint64 offset; |
38 guint64 total_size; | |
39 guint32 length; | |
40 guint32 flags; | |
41 guint32 ack_id; | |
31202
d4869cd86680
Chang member name so it is compatible with MsnSlpHeader struct names.
masca@cpw.pidgin.im
parents:
31201
diff
changeset
|
42 guint32 ack_sub_id; |
31201 | 43 guint64 ack_size; |
44 /* guint8 body[1]; */ | |
31205 | 45 } MsnP2PHeader; |
31491
7b771e6f1142
Change SLP P2P functions to use the new buffer access functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31480
diff
changeset
|
46 #define P2P_PACKET_HEADER_SIZE (6 * 4 + 3 * 8) |
31201 | 47 |
31277 | 48 typedef struct { |
49 guint8 header_len; | |
50 guint8 opcode; | |
31286
544221aadf6e
Fix some field sizes in P2Pv2 header.
masca@cpw.pidgin.im
parents:
31282
diff
changeset
|
51 guint16 message_len; |
544221aadf6e
Fix some field sizes in P2Pv2 header.
masca@cpw.pidgin.im
parents:
31282
diff
changeset
|
52 guint32 base_id; |
31277 | 53 } MsnP2Pv2Header; |
54 | |
31204
c2e911eeffc9
Drop MsnSlpFooter in favor of MsnP2pFooter.
masca@cpw.pidgin.im
parents:
31202
diff
changeset
|
55 typedef struct |
c2e911eeffc9
Drop MsnSlpFooter in favor of MsnP2pFooter.
masca@cpw.pidgin.im
parents:
31202
diff
changeset
|
56 { |
c2e911eeffc9
Drop MsnSlpFooter in favor of MsnP2pFooter.
masca@cpw.pidgin.im
parents:
31202
diff
changeset
|
57 guint32 value; |
c2e911eeffc9
Drop MsnSlpFooter in favor of MsnP2pFooter.
masca@cpw.pidgin.im
parents:
31202
diff
changeset
|
58 } MsnP2PFooter; |
31491
7b771e6f1142
Change SLP P2P functions to use the new buffer access functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31480
diff
changeset
|
59 #define P2P_PACKET_FOOTER_SIZE (1 * 4) |
31204
c2e911eeffc9
Drop MsnSlpFooter in favor of MsnP2pFooter.
masca@cpw.pidgin.im
parents:
31202
diff
changeset
|
60 |
31599
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
61 typedef struct { |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
62 MsnP2PHeader header; |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
63 MsnP2PFooter footer; |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
64 } MsnP2PInfo; |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
65 |
31201 | 66 typedef enum |
67 { | |
68 P2P_NO_FLAG = 0x0, /**< No flags specified */ | |
69 P2P_OUT_OF_ORDER = 0x1, /**< Chunk out-of-order */ | |
70 P2P_ACK = 0x2, /**< Acknowledgement */ | |
71 P2P_PENDING_INVITE = 0x4, /**< There is a pending invite */ | |
72 P2P_BINARY_ERROR = 0x8, /**< Error on the binary level */ | |
31279
01dea46bbb42
Add some more flag definitions to the p2p flags.
masca@cpw.pidgin.im
parents:
31277
diff
changeset
|
73 P2P_FILE = 0x10, /**< File */ |
31201 | 74 P2P_MSN_OBJ_DATA = 0x20, /**< MsnObject data */ |
31279
01dea46bbb42
Add some more flag definitions to the p2p flags.
masca@cpw.pidgin.im
parents:
31277
diff
changeset
|
75 P2P_CLOSE = 0x40, /**< Close session */ |
01dea46bbb42
Add some more flag definitions to the p2p flags.
masca@cpw.pidgin.im
parents:
31277
diff
changeset
|
76 P2P_TLP_ERROR = 0x80, /**< Error at transport layer protocol */ |
01dea46bbb42
Add some more flag definitions to the p2p flags.
masca@cpw.pidgin.im
parents:
31277
diff
changeset
|
77 P2P_DC_HANDSHAKE = 0x100, /**< Direct Handshake */ |
31417
f26e961e1274
Fix the name of this flag.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31412
diff
changeset
|
78 P2P_WLM2009_COMP = 0x1000000, /**< Compatibility with WLM 2009 */ |
31201 | 79 P2P_FILE_DATA = 0x1000030 /**< File transfer data */ |
80 } MsnP2PHeaderFlag; | |
81 /* Info From: | |
82 * http://msnpiki.msnfanatic.com/index.php/MSNC:P2Pv1_Headers#Flags | |
83 * http://trac.kmess.org/changeset/ba04d0c825769d23370511031c47f6be75fe9b86 | |
84 * #7180 | |
85 */ | |
86 | |
31282
7b1b7a4e0bb4
Documetn P2P Application ID in a enum and use it instead of 'magic numbers'.
masca@cpw.pidgin.im
parents:
31279
diff
changeset
|
87 typedef enum |
7b1b7a4e0bb4
Documetn P2P Application ID in a enum and use it instead of 'magic numbers'.
masca@cpw.pidgin.im
parents:
31279
diff
changeset
|
88 { |
31480 | 89 P2P_APPID_SESSION = 0x0, /**< Negotiating session */ |
31282
7b1b7a4e0bb4
Documetn P2P Application ID in a enum and use it instead of 'magic numbers'.
masca@cpw.pidgin.im
parents:
31279
diff
changeset
|
90 P2P_APPID_OBJ = 0x1, /**< MsnObject (Display or Emoticon) */ |
7b1b7a4e0bb4
Documetn P2P Application ID in a enum and use it instead of 'magic numbers'.
masca@cpw.pidgin.im
parents:
31279
diff
changeset
|
91 P2P_APPID_FILE = 0x2, /**< File transfer */ |
7b1b7a4e0bb4
Documetn P2P Application ID in a enum and use it instead of 'magic numbers'.
masca@cpw.pidgin.im
parents:
31279
diff
changeset
|
92 P2P_APPID_EMOTE = 0xB, /**< CustomEmoticon */ |
7b1b7a4e0bb4
Documetn P2P Application ID in a enum and use it instead of 'magic numbers'.
masca@cpw.pidgin.im
parents:
31279
diff
changeset
|
93 P2P_APPID_DISPLAY = 0xC /**< Display Image */ |
7b1b7a4e0bb4
Documetn P2P Application ID in a enum and use it instead of 'magic numbers'.
masca@cpw.pidgin.im
parents:
31279
diff
changeset
|
94 } MsnP2PAppId; |
7b1b7a4e0bb4
Documetn P2P Application ID in a enum and use it instead of 'magic numbers'.
masca@cpw.pidgin.im
parents:
31279
diff
changeset
|
95 |
31599
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
96 MsnP2PInfo * |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
97 msn_p2p_info_new(void); |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
98 |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
99 MsnP2PInfo * |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
100 msn_p2p_info_dup(MsnP2PInfo *info); |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
101 |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
102 void |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
103 msn_p2p_info_free(MsnP2PInfo *info); |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
104 |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
105 size_t |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
106 msn_p2p_header_from_wire(MsnP2PInfo *info, const char *wire); |
31201 | 107 |
31491
7b771e6f1142
Change SLP P2P functions to use the new buffer access functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31480
diff
changeset
|
108 char * |
31599
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
109 msn_p2p_header_to_wire(MsnP2PInfo *info, size_t *len); |
31201 | 110 |
31599
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
111 size_t |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
112 msn_p2p_footer_from_wire(MsnP2PInfo *info, const char *wire); |
31220 | 113 |
31491
7b771e6f1142
Change SLP P2P functions to use the new buffer access functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31480
diff
changeset
|
114 char * |
31599
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
115 msn_p2p_footer_to_wire(MsnP2PInfo *info, size_t *len); |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
116 |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
117 void |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
118 msn_p2p_info_to_string(MsnP2PInfo *info, GString *str); |
31220 | 119 |
31306
5964f65c17ed
Avoid duplicated code using a util function to check the flags.
masca@cpw.pidgin.im
parents:
31301
diff
changeset
|
120 gboolean |
5964f65c17ed
Avoid duplicated code using a util function to check the flags.
masca@cpw.pidgin.im
parents:
31301
diff
changeset
|
121 msn_p2p_msg_is_data(const MsnP2PHeaderFlag flags); |
5964f65c17ed
Avoid duplicated code using a util function to check the flags.
masca@cpw.pidgin.im
parents:
31301
diff
changeset
|
122 |
31599
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
123 gboolean |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
124 msn_p2p_info_is_valid(MsnP2PInfo *info); |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
125 |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
126 gboolean |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
127 msn_p2p_info_is_final(MsnP2PInfo *info); |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
128 |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
129 guint32 |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
130 msn_p2p_info_get_session_id(MsnP2PInfo *info); |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
131 |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
132 guint32 |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
133 msn_p2p_info_get_id(MsnP2PInfo *info); |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
134 |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
135 guint64 |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
136 msn_p2p_info_get_offset(MsnP2PInfo *info); |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
137 |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
138 guint64 |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
139 msn_p2p_info_get_total_size(MsnP2PInfo *info); |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
140 |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
141 guint32 |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
142 msn_p2p_info_get_length(MsnP2PInfo *info); |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
143 |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
144 guint32 |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
145 msn_p2p_info_get_flags(MsnP2PInfo *info); |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
146 |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
147 guint32 |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
148 msn_p2p_info_get_ack_id(MsnP2PInfo *info); |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
149 |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
150 guint32 |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
151 msn_p2p_info_get_ack_sub_id(MsnP2PInfo *info); |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
152 |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
153 guint64 |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
154 msn_p2p_info_get_ack_size(MsnP2PInfo *info); |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
155 |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
156 guint32 |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
157 msn_p2p_info_get_app_id(MsnP2PInfo *info); |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
158 |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
159 void |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
160 msn_p2p_info_set_session_id(MsnP2PInfo *info, guint32 session_id); |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
161 |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
162 void |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
163 msn_p2p_info_set_id(MsnP2PInfo *info, guint32 id); |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
164 |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
165 void |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
166 msn_p2p_info_set_offset(MsnP2PInfo *info, guint64 offset); |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
167 |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
168 void |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
169 msn_p2p_info_set_total_size(MsnP2PInfo *info, guint64 total_size); |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
170 |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
171 void |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
172 msn_p2p_info_set_length(MsnP2PInfo *info, guint32 length); |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
173 |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
174 void |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
175 msn_p2p_info_set_flags(MsnP2PInfo *info, guint32 flags); |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
176 |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
177 void |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
178 msn_p2p_info_set_ack_id(MsnP2PInfo *info, guint32 ack_id); |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
179 |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
180 void |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
181 msn_p2p_info_set_ack_sub_id(MsnP2PInfo *info, guint32 ack_sub_id); |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
182 |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
183 void |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
184 msn_p2p_info_set_ack_size(MsnP2PInfo *info, guint64 ack_size); |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
185 |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
186 void |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
187 msn_p2p_info_set_app_id(MsnP2PInfo *info, guint32 app_id); |
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
188 |
31201 | 189 #endif /* MSN_P2P_H */ |
31599
34da321b60f1
Try to hide all P2P fields away behind accessor functions.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
31536
diff
changeset
|
190 |