Mercurial > pidgin.yaz
comparison libpurple/protocols/oscar/peer.h @ 15823:32c366eeeb99
sed -ie 's/gaim/purple/g'
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Mon, 19 Mar 2007 07:01:17 +0000 |
parents | 5fe8042783c1 |
children | 40a8cefe4fcd |
comparison
equal
deleted
inserted
replaced
15822:84b0f9b23ede | 15823:32c366eeeb99 |
---|---|
1 /* | 1 /* |
2 * Gaim's oscar protocol plugin | 2 * Purple's oscar protocol plugin |
3 * This file is the legal property of its developers. | 3 * This file is the legal property of its developers. |
4 * Please see the AUTHORS file distributed alongside this file. | 4 * Please see the AUTHORS file distributed alongside this file. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Lesser General Public | 7 * modify it under the terms of the GNU Lesser General Public |
155 gpointer frame; | 155 gpointer frame; |
156 | 156 |
157 /** | 157 /** |
158 * This is only used when the peer connection is being established. | 158 * This is only used when the peer connection is being established. |
159 */ | 159 */ |
160 GaimProxyConnectData *client_connect_data; | 160 PurpleProxyConnectData *client_connect_data; |
161 GaimProxyConnectData *verified_connect_data; | 161 PurpleProxyConnectData *verified_connect_data; |
162 | 162 |
163 /** | 163 /** |
164 * This is only used when the peer connection is being established. | 164 * This is only used when the peer connection is being established. |
165 */ | 165 */ |
166 GaimNetworkListenData *listen_data; | 166 PurpleNetworkListenData *listen_data; |
167 | 167 |
168 | 168 |
169 /** | 169 /** |
170 * This is only used when the peer connection is being established. | 170 * This is only used when the peer connection is being established. |
171 */ | 171 */ |
181 guint8 header[6]; | 181 guint8 header[6]; |
182 ssize_t header_received; | 182 ssize_t header_received; |
183 guint8 proxy_header[12]; | 183 guint8 proxy_header[12]; |
184 ssize_t proxy_header_received; | 184 ssize_t proxy_header_received; |
185 ByteStream buffer_incoming; | 185 ByteStream buffer_incoming; |
186 GaimCircBuffer *buffer_outgoing; | 186 PurpleCircBuffer *buffer_outgoing; |
187 guint watcher_incoming; | 187 guint watcher_incoming; |
188 guint watcher_outgoing; | 188 guint watcher_outgoing; |
189 | 189 |
190 /** | 190 /** |
191 * IP address of the proxy server, if applicable. | 191 * IP address of the proxy server, if applicable. |
210 * Checksumming | 210 * Checksumming |
211 */ | 211 */ |
212 ChecksumData *checksum_data; | 212 ChecksumData *checksum_data; |
213 | 213 |
214 /* TODOFT */ | 214 /* TODOFT */ |
215 GaimXfer *xfer; | 215 PurpleXfer *xfer; |
216 OftFrame xferdata; | 216 OftFrame xferdata; |
217 guint sending_data_timer; | 217 guint sending_data_timer; |
218 }; | 218 }; |
219 | 219 |
220 /* | 220 /* |
233 void peer_connection_destroy(PeerConnection *conn, OscarDisconnectReason reason, const gchar *error_message); | 233 void peer_connection_destroy(PeerConnection *conn, OscarDisconnectReason reason, const gchar *error_message); |
234 void peer_connection_schedule_destroy(PeerConnection *conn, OscarDisconnectReason reason, const gchar *error_message); | 234 void peer_connection_schedule_destroy(PeerConnection *conn, OscarDisconnectReason reason, const gchar *error_message); |
235 PeerConnection *peer_connection_find_by_type(OscarData *od, const char *sn, OscarCapability type); | 235 PeerConnection *peer_connection_find_by_type(OscarData *od, const char *sn, OscarCapability type); |
236 PeerConnection *peer_connection_find_by_cookie(OscarData *od, const char *sn, const guchar *cookie); | 236 PeerConnection *peer_connection_find_by_cookie(OscarData *od, const char *sn, const guchar *cookie); |
237 | 237 |
238 void peer_connection_listen_cb(gpointer data, gint source, GaimInputCondition cond); | 238 void peer_connection_listen_cb(gpointer data, gint source, PurpleInputCondition cond); |
239 void peer_connection_recv_cb(gpointer data, gint source, GaimInputCondition cond); | 239 void peer_connection_recv_cb(gpointer data, gint source, PurpleInputCondition cond); |
240 void peer_connection_send(PeerConnection *conn, ByteStream *bs); | 240 void peer_connection_send(PeerConnection *conn, ByteStream *bs); |
241 | 241 |
242 void peer_connection_trynext(PeerConnection *conn); | 242 void peer_connection_trynext(PeerConnection *conn); |
243 void peer_connection_finalize_connection(PeerConnection *conn); | 243 void peer_connection_finalize_connection(PeerConnection *conn); |
244 void peer_connection_propose(OscarData *od, OscarCapability type, const char *sn); | 244 void peer_connection_propose(OscarData *od, OscarCapability type, const char *sn); |
248 * For ODC | 248 * For ODC |
249 */ | 249 */ |
250 void peer_odc_close(PeerConnection *conn); | 250 void peer_odc_close(PeerConnection *conn); |
251 void peer_odc_recv_frame(PeerConnection *conn, ByteStream *bs); | 251 void peer_odc_recv_frame(PeerConnection *conn, ByteStream *bs); |
252 void peer_odc_send_cookie(PeerConnection *conn); | 252 void peer_odc_send_cookie(PeerConnection *conn); |
253 void peer_odc_send_typing(PeerConnection *conn, GaimTypingState typing); | 253 void peer_odc_send_typing(PeerConnection *conn, PurpleTypingState typing); |
254 void peer_odc_send_im(PeerConnection *conn, const char *msg, int len, int encoding, gboolean autoreply); | 254 void peer_odc_send_im(PeerConnection *conn, const char *msg, int len, int encoding, gboolean autoreply); |
255 | 255 |
256 /* | 256 /* |
257 * For OFT | 257 * For OFT |
258 */ | 258 */ |
260 void peer_oft_recv_frame(PeerConnection *conn, ByteStream *bs); | 260 void peer_oft_recv_frame(PeerConnection *conn, ByteStream *bs); |
261 void peer_oft_send_prompt(PeerConnection *conn); | 261 void peer_oft_send_prompt(PeerConnection *conn); |
262 void peer_oft_checksum_destroy(ChecksumData *checksum_data); | 262 void peer_oft_checksum_destroy(ChecksumData *checksum_data); |
263 | 263 |
264 /* Xfer callbacks for receiving a file */ | 264 /* Xfer callbacks for receiving a file */ |
265 void peer_oft_recvcb_init(GaimXfer *xfer); | 265 void peer_oft_recvcb_init(PurpleXfer *xfer); |
266 void peer_oft_recvcb_end(GaimXfer *xfer); | 266 void peer_oft_recvcb_end(PurpleXfer *xfer); |
267 void peer_oft_recvcb_ack_recv(GaimXfer *xfer, const guchar *buffer, size_t size); | 267 void peer_oft_recvcb_ack_recv(PurpleXfer *xfer, const guchar *buffer, size_t size); |
268 | 268 |
269 /* Xfer callbacks for sending a file */ | 269 /* Xfer callbacks for sending a file */ |
270 void peer_oft_sendcb_init(GaimXfer *xfer); | 270 void peer_oft_sendcb_init(PurpleXfer *xfer); |
271 void peer_oft_sendcb_ack(GaimXfer *xfer, const guchar *buffer, size_t size); | 271 void peer_oft_sendcb_ack(PurpleXfer *xfer, const guchar *buffer, size_t size); |
272 | 272 |
273 /* Xfer callbacks for both sending and receiving */ | 273 /* Xfer callbacks for both sending and receiving */ |
274 void peer_oft_cb_generic_cancel(GaimXfer *xfer); | 274 void peer_oft_cb_generic_cancel(PurpleXfer *xfer); |
275 | 275 |
276 /* | 276 /* |
277 * For peer proxying | 277 * For peer proxying |
278 */ | 278 */ |
279 void peer_proxy_connection_established_cb(gpointer data, gint source, const gchar *error_message); | 279 void peer_proxy_connection_established_cb(gpointer data, gint source, const gchar *error_message); |