Wed, 23 May 2007 03:59:19 +0000
Fix file transfers aborting and mistakenly being marked as cancelled when they are actually complete. Fixes #814
| 4514 | 1 | /** |
|
7820
06fc9f66d2cb
[gaim-migrate @ 8472]
Mark Doliner <markdoliner@pidgin.im>
parents:
7805
diff
changeset
|
2 | * @file ft.h File Transfer API |
|
5034
077678f7b048
[gaim-migrate @ 5377]
Christian Hammond <chipx86@chipx86.com>
parents:
4675
diff
changeset
|
3 | * @ingroup core |
| 4514 | 4 | * |
| 15884 | 5 | * purple |
| 4514 | 6 | * |
| 15884 | 7 | * Purple is the legal property of its developers, whose names are too numerous |
| 8046 | 8 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 9 | * source distribution. | |
| 8231 | 10 | * |
| 4514 | 11 | * This program is free software; you can redistribute it and/or modify |
| 12 | * it under the terms of the GNU General Public License as published by | |
| 13 | * the Free Software Foundation; either version 2 of the License, or | |
| 14 | * (at your option) any later version. | |
| 15 | * | |
| 16 | * This program is distributed in the hope that it will be useful, | |
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 19 | * GNU General Public License for more details. | |
| 20 | * | |
| 21 | * You should have received a copy of the GNU General Public License | |
| 22 | * along with this program; if not, write to the Free Software | |
| 23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
|
15000
7ffcbf905ded
[gaim-migrate @ 17710]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
24 | * |
|
7ffcbf905ded
[gaim-migrate @ 17710]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
25 | * @see @ref xfer-signals |
| 4514 | 26 | */ |
| 15884 | 27 | #ifndef _PURPLE_FT_H_ |
| 28 | #define _PURPLE_FT_H_ | |
| 4514 | 29 | |
| 30 | /**************************************************************************/ | |
| 31 | /** Data Structures */ | |
| 32 | /**************************************************************************/ | |
| 15884 | 33 | typedef struct _PurpleXfer PurpleXfer; |
| 4514 | 34 | |
|
12151
8002bb57756b
[gaim-migrate @ 14452]
Richard Laager <rlaager@pidgin.im>
parents:
12150
diff
changeset
|
35 | #include <glib.h> |
|
8002bb57756b
[gaim-migrate @ 14452]
Richard Laager <rlaager@pidgin.im>
parents:
12150
diff
changeset
|
36 | #include <stdio.h> |
|
8002bb57756b
[gaim-migrate @ 14452]
Richard Laager <rlaager@pidgin.im>
parents:
12150
diff
changeset
|
37 | |
|
5872
754c63f29b77
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
38 | #include "account.h" |
|
754c63f29b77
[gaim-migrate @ 6304]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
39 | |
| 4514 | 40 | /** |
| 41 | * Types of file transfers. | |
| 42 | */ | |
| 43 | typedef enum | |
| 44 | { | |
| 15884 | 45 | PURPLE_XFER_UNKNOWN = 0, /**< Unknown file transfer type. */ |
| 46 | PURPLE_XFER_SEND, /**< File sending. */ | |
| 47 | PURPLE_XFER_RECEIVE /**< File receiving. */ | |
| 4514 | 48 | |
| 15884 | 49 | } PurpleXferType; |
| 4514 | 50 | |
| 7805 | 51 | /** |
| 52 | * The different states of the xfer. | |
| 53 | */ | |
| 7738 | 54 | typedef enum |
| 55 | { | |
| 15884 | 56 | PURPLE_XFER_STATUS_UNKNOWN = 0, /**< Unknown, the xfer may be null. */ |
| 57 | PURPLE_XFER_STATUS_NOT_STARTED, /**< It hasn't started yet. */ | |
| 58 | PURPLE_XFER_STATUS_ACCEPTED, /**< Receive accepted, but destination file not selected yet */ | |
| 59 | PURPLE_XFER_STATUS_STARTED, /**< purple_xfer_start has been called. */ | |
| 60 | PURPLE_XFER_STATUS_DONE, /**< The xfer completed successfully. */ | |
| 61 | PURPLE_XFER_STATUS_CANCEL_LOCAL, /**< The xfer was canceled by us. */ | |
| 62 | PURPLE_XFER_STATUS_CANCEL_REMOTE /**< The xfer was canceled by the other end, or we couldn't connect. */ | |
| 63 | } PurpleXferStatusType; | |
| 7738 | 64 | |
| 4514 | 65 | /** |
| 66 | * File transfer UI operations. | |
| 67 | * | |
| 68 | * Any UI representing a file transfer must assign a filled-out | |
| 15884 | 69 | * PurpleXferUiOps structure to the purple_xfer. |
| 4514 | 70 | */ |
|
6240
0390b27fe09d
[gaim-migrate @ 6734]
Christian Hammond <chipx86@chipx86.com>
parents:
5944
diff
changeset
|
71 | typedef struct |
| 4514 | 72 | { |
| 15884 | 73 | void (*new_xfer)(PurpleXfer *xfer); |
| 74 | void (*destroy)(PurpleXfer *xfer); | |
| 75 | void (*add_xfer)(PurpleXfer *xfer); | |
| 76 | void (*update_progress)(PurpleXfer *xfer, double percent); | |
| 77 | void (*cancel_local)(PurpleXfer *xfer); | |
| 78 | void (*cancel_remote)(PurpleXfer *xfer); | |
|
6240
0390b27fe09d
[gaim-migrate @ 6734]
Christian Hammond <chipx86@chipx86.com>
parents:
5944
diff
changeset
|
79 | |
|
16743
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
80 | void (*_purple_reserved1)(void); |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
81 | void (*_purple_reserved2)(void); |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
82 | void (*_purple_reserved3)(void); |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
83 | void (*_purple_reserved4)(void); |
| 15884 | 84 | } PurpleXferUiOps; |
| 4514 | 85 | |
| 86 | /** | |
| 87 | * A core representation of a file transfer. | |
| 88 | */ | |
| 15884 | 89 | struct _PurpleXfer |
| 4514 | 90 | { |
|
15280
9df6112da532
[gaim-migrate @ 18008]
Mark Doliner <markdoliner@pidgin.im>
parents:
15000
diff
changeset
|
91 | guint ref; /**< The reference count. */ |
| 15884 | 92 | PurpleXferType type; /**< The type of transfer. */ |
| 4514 | 93 | |
| 15884 | 94 | PurpleAccount *account; /**< The account. */ |
| 4514 | 95 | |
| 96 | char *who; /**< The person on the other end of the | |
| 97 | transfer. */ | |
| 98 | ||
|
9933
61bd3fadbfe6
[gaim-migrate @ 10825]
Dave West <kat@users.sourceforge.net>
parents:
9511
diff
changeset
|
99 | char *message; /**< A message sent with the request */ |
|
4605
67526771e679
[gaim-migrate @ 4892]
Mark Doliner <markdoliner@pidgin.im>
parents:
4595
diff
changeset
|
100 | char *filename; /**< The name sent over the network. */ |
|
67526771e679
[gaim-migrate @ 4892]
Mark Doliner <markdoliner@pidgin.im>
parents:
4595
diff
changeset
|
101 | char *local_filename; /**< The name on the local hard drive. */ |
| 4514 | 102 | size_t size; /**< The size of the file. */ |
| 103 | ||
| 104 | FILE *dest_fp; /**< The destination file pointer. */ | |
| 105 | ||
| 106 | char *remote_ip; /**< The remote IP address. */ | |
| 107 | int local_port; /**< The local port. */ | |
| 108 | int remote_port; /**< The remote port. */ | |
| 109 | ||
| 110 | int fd; /**< The socket file descriptor. */ | |
| 111 | int watcher; /**< Watcher. */ | |
| 112 | ||
| 113 | size_t bytes_sent; /**< The number of bytes sent. */ | |
| 114 | size_t bytes_remaining; /**< The number of bytes remaining. */ | |
|
13599
b6369e541654
[gaim-migrate @ 15984]
Mark Doliner <markdoliner@pidgin.im>
parents:
13009
diff
changeset
|
115 | time_t start_time; /**< When the transfer of data began. */ |
|
b6369e541654
[gaim-migrate @ 15984]
Mark Doliner <markdoliner@pidgin.im>
parents:
13009
diff
changeset
|
116 | time_t end_time; /**< When the transfer of data ended. */ |
| 4514 | 117 | |
|
15280
9df6112da532
[gaim-migrate @ 18008]
Mark Doliner <markdoliner@pidgin.im>
parents:
15000
diff
changeset
|
118 | size_t current_buffer_size; /**< This gradually increases for fast |
|
9df6112da532
[gaim-migrate @ 18008]
Mark Doliner <markdoliner@pidgin.im>
parents:
15000
diff
changeset
|
119 | network connections. */ |
|
9df6112da532
[gaim-migrate @ 18008]
Mark Doliner <markdoliner@pidgin.im>
parents:
15000
diff
changeset
|
120 | |
| 15884 | 121 | PurpleXferStatusType status; /**< File Transfer's status. */ |
| 4538 | 122 | |
| 4514 | 123 | /* I/O operations. */ |
| 124 | struct | |
| 125 | { | |
| 15884 | 126 | void (*init)(PurpleXfer *xfer); |
| 127 | void (*request_denied)(PurpleXfer *xfer); | |
| 128 | void (*start)(PurpleXfer *xfer); | |
| 129 | void (*end)(PurpleXfer *xfer); | |
| 130 | void (*cancel_send)(PurpleXfer *xfer); | |
| 131 | void (*cancel_recv)(PurpleXfer *xfer); | |
| 132 | gssize (*read)(guchar **buffer, PurpleXfer *xfer); | |
| 133 | gssize (*write)(const guchar *buffer, size_t size, PurpleXfer *xfer); | |
| 134 | void (*ack)(PurpleXfer *xfer, const guchar *buffer, size_t size); | |
| 4514 | 135 | |
| 136 | } ops; | |
| 137 | ||
| 15884 | 138 | PurpleXferUiOps *ui_ops; /**< UI-specific operations. */ |
| 4514 | 139 | void *ui_data; /**< UI-specific data. */ |
| 140 | ||
| 141 | void *data; /**< prpl-specific data. */ | |
| 142 | }; | |
| 143 | ||
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
144 | #ifdef __cplusplus |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
145 | extern "C" { |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
146 | #endif |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
147 | |
| 4514 | 148 | /**************************************************************************/ |
| 149 | /** @name File Transfer API */ | |
| 150 | /**************************************************************************/ | |
| 151 | /*@{*/ | |
| 152 | ||
| 153 | /** | |
| 154 | * Creates a new file transfer handle. | |
| 7805 | 155 | * This is called by prpls. |
| 156 | * The handle starts with a ref count of 1, and this reference | |
| 157 | * is owned by the core. The prpl normally does not need to | |
| 15884 | 158 | * purple_xfer_ref or unref. |
| 4514 | 159 | * |
| 160 | * @param account The account sending or receiving the file. | |
| 161 | * @param type The type of file transfer. | |
| 162 | * @param who The name of the remote user. | |
| 163 | * | |
| 164 | * @return A file transfer handle. | |
| 165 | */ | |
| 15884 | 166 | PurpleXfer *purple_xfer_new(PurpleAccount *account, |
| 167 | PurpleXferType type, const char *who); | |
| 4514 | 168 | |
| 169 | /** | |
|
15702
111fdd9108cc
Patch from Richard 'wabz' Nelson to add file-transfer ui. Amazing stuff\!
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15435
diff
changeset
|
170 | * Returns all xfers |
|
111fdd9108cc
Patch from Richard 'wabz' Nelson to add file-transfer ui. Amazing stuff\!
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15435
diff
changeset
|
171 | * |
|
111fdd9108cc
Patch from Richard 'wabz' Nelson to add file-transfer ui. Amazing stuff\!
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15435
diff
changeset
|
172 | * @return all current xfers with refs |
|
111fdd9108cc
Patch from Richard 'wabz' Nelson to add file-transfer ui. Amazing stuff\!
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15435
diff
changeset
|
173 | */ |
| 15884 | 174 | GList *purple_xfers_get_all(void); |
|
15702
111fdd9108cc
Patch from Richard 'wabz' Nelson to add file-transfer ui. Amazing stuff\!
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15435
diff
changeset
|
175 | |
|
111fdd9108cc
Patch from Richard 'wabz' Nelson to add file-transfer ui. Amazing stuff\!
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15435
diff
changeset
|
176 | /** |
| 15884 | 177 | * Increases the reference count on a PurpleXfer. |
| 178 | * Please call purple_xfer_unref later. | |
| 4514 | 179 | * |
| 7805 | 180 | * @param xfer A file transfer handle. |
| 4514 | 181 | */ |
| 15884 | 182 | void purple_xfer_ref(PurpleXfer *xfer); |
| 7805 | 183 | |
| 184 | /** | |
| 15884 | 185 | * Decreases the reference count on a PurpleXfer. |
| 186 | * If the reference reaches 0, purple_xfer_destroy (an internal function) | |
| 7805 | 187 | * will destroy the xfer. It calls the ui destroy cb first. |
|
8735
01248ea222d3
[gaim-migrate @ 9490]
Jonathan Champ <royanee@users.sourceforge.net>
parents:
8585
diff
changeset
|
188 | * Since the core keeps a ref on the xfer, only an erroneous call to |
| 7805 | 189 | * this function will destroy the xfer while still in use. |
| 190 | * | |
| 191 | * @param xfer A file transfer handle. | |
| 192 | */ | |
| 15884 | 193 | void purple_xfer_unref(PurpleXfer *xfer); |
| 4514 | 194 | |
| 195 | /** | |
|
8585
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
196 | * Requests confirmation for a file transfer from the user. If receiving |
|
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
197 | * a file which is known at this point, this requests user to accept and |
|
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
198 | * save the file. If the filename is unknown (not set) this only requests user |
|
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
199 | * to accept the file transfer. In this case protocol must call this function |
|
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
200 | * again once the filename is available. |
| 4514 | 201 | * |
| 202 | * @param xfer The file transfer to request confirmation on. | |
| 203 | */ | |
| 15884 | 204 | void purple_xfer_request(PurpleXfer *xfer); |
| 4514 | 205 | |
| 206 | /** | |
| 207 | * Called if the user accepts the file transfer request. | |
| 208 | * | |
| 209 | * @param xfer The file transfer. | |
| 210 | * @param filename The filename. | |
| 211 | */ | |
| 15884 | 212 | void purple_xfer_request_accepted(PurpleXfer *xfer, const char *filename); |
| 4514 | 213 | |
| 214 | /** | |
| 215 | * Called if the user rejects the file transfer request. | |
| 216 | * | |
| 217 | * @param xfer The file transfer. | |
| 218 | */ | |
| 15884 | 219 | void purple_xfer_request_denied(PurpleXfer *xfer); |
| 4514 | 220 | |
| 221 | /** | |
| 222 | * Returns the type of file transfer. | |
| 223 | * | |
| 224 | * @param xfer The file transfer. | |
| 225 | * | |
| 226 | * @return The type of the file transfer. | |
| 227 | */ | |
| 15884 | 228 | PurpleXferType purple_xfer_get_type(const PurpleXfer *xfer); |
| 4514 | 229 | |
| 230 | /** | |
| 231 | * Returns the account the file transfer is using. | |
| 232 | * | |
| 233 | * @param xfer The file transfer. | |
| 234 | * | |
| 235 | * @return The account. | |
| 236 | */ | |
| 15884 | 237 | PurpleAccount *purple_xfer_get_account(const PurpleXfer *xfer); |
| 4514 | 238 | |
| 239 | /** | |
| 7805 | 240 | * Returns the status of the xfer. |
| 241 | * | |
| 242 | * @param xfer The file transfer. | |
| 243 | * | |
| 244 | * @return The status. | |
| 245 | */ | |
| 15884 | 246 | PurpleXferStatusType purple_xfer_get_status(const PurpleXfer *xfer); |
| 7805 | 247 | |
| 248 | /** | |
| 7738 | 249 | * Returns true if the file transfer was canceled. |
| 250 | * | |
| 251 | * @param xfer The file transfer. | |
| 252 | * | |
| 253 | * @return Whether or not the transfer was canceled. | |
| 254 | */ | |
| 15884 | 255 | gboolean purple_xfer_is_canceled(const PurpleXfer *xfer); |
| 7738 | 256 | |
| 257 | /** | |
|
4539
44671e1ce14e
[gaim-migrate @ 4818]
Christian Hammond <chipx86@chipx86.com>
parents:
4538
diff
changeset
|
258 | * Returns the completed state for a file transfer. |
|
44671e1ce14e
[gaim-migrate @ 4818]
Christian Hammond <chipx86@chipx86.com>
parents:
4538
diff
changeset
|
259 | * |
|
44671e1ce14e
[gaim-migrate @ 4818]
Christian Hammond <chipx86@chipx86.com>
parents:
4538
diff
changeset
|
260 | * @param xfer The file transfer. |
|
44671e1ce14e
[gaim-migrate @ 4818]
Christian Hammond <chipx86@chipx86.com>
parents:
4538
diff
changeset
|
261 | * |
|
44671e1ce14e
[gaim-migrate @ 4818]
Christian Hammond <chipx86@chipx86.com>
parents:
4538
diff
changeset
|
262 | * @return The completed state. |
|
44671e1ce14e
[gaim-migrate @ 4818]
Christian Hammond <chipx86@chipx86.com>
parents:
4538
diff
changeset
|
263 | */ |
| 15884 | 264 | gboolean purple_xfer_is_completed(const PurpleXfer *xfer); |
|
4539
44671e1ce14e
[gaim-migrate @ 4818]
Christian Hammond <chipx86@chipx86.com>
parents:
4538
diff
changeset
|
265 | |
|
44671e1ce14e
[gaim-migrate @ 4818]
Christian Hammond <chipx86@chipx86.com>
parents:
4538
diff
changeset
|
266 | /** |
| 4514 | 267 | * Returns the name of the file being sent or received. |
| 268 | * | |
| 269 | * @param xfer The file transfer. | |
| 270 | * | |
| 271 | * @return The filename. | |
| 272 | */ | |
| 15884 | 273 | const char *purple_xfer_get_filename(const PurpleXfer *xfer); |
| 4514 | 274 | |
| 275 | /** | |
| 276 | * Returns the file's destination filename, | |
| 277 | * | |
| 278 | * @param xfer The file transfer. | |
| 279 | * | |
| 280 | * @return The destination filename. | |
| 281 | */ | |
| 15884 | 282 | const char *purple_xfer_get_local_filename(const PurpleXfer *xfer); |
| 4514 | 283 | |
| 284 | /** | |
|
13009
12ef9f229961
[gaim-migrate @ 15362]
Daniel Atallah <datallah@pidgin.im>
parents:
12151
diff
changeset
|
285 | * Returns the number of bytes sent (or received) so far. |
| 4514 | 286 | * |
| 287 | * @param xfer The file transfer. | |
| 288 | * | |
| 289 | * @return The number of bytes sent. | |
| 290 | */ | |
| 15884 | 291 | size_t purple_xfer_get_bytes_sent(const PurpleXfer *xfer); |
| 4514 | 292 | |
| 293 | /** | |
|
13009
12ef9f229961
[gaim-migrate @ 15362]
Daniel Atallah <datallah@pidgin.im>
parents:
12151
diff
changeset
|
294 | * Returns the number of bytes remaining to send or receive. |
| 4514 | 295 | * |
| 296 | * @param xfer The file transfer. | |
| 297 | * | |
|
13009
12ef9f229961
[gaim-migrate @ 15362]
Daniel Atallah <datallah@pidgin.im>
parents:
12151
diff
changeset
|
298 | * @return The number of bytes remaining. |
| 4514 | 299 | */ |
| 15884 | 300 | size_t purple_xfer_get_bytes_remaining(const PurpleXfer *xfer); |
| 4514 | 301 | |
| 302 | /** | |
| 303 | * Returns the size of the file being sent or received. | |
| 304 | * | |
| 305 | * @param xfer The file transfer. | |
| 7805 | 306 | * |
| 4514 | 307 | * @return The total size of the file. |
| 308 | */ | |
| 15884 | 309 | size_t purple_xfer_get_size(const PurpleXfer *xfer); |
| 4514 | 310 | |
| 311 | /** | |
| 312 | * Returns the current percentage of progress of the transfer. | |
| 313 | * | |
| 314 | * This is a number between 0 (0%) and 1 (100%). | |
| 315 | * | |
| 316 | * @param xfer The file transfer. | |
| 317 | * | |
| 318 | * @return The percentage complete. | |
| 319 | */ | |
| 15884 | 320 | double purple_xfer_get_progress(const PurpleXfer *xfer); |
| 4514 | 321 | |
| 322 | /** | |
| 323 | * Returns the local port number in the file transfer. | |
| 324 | * | |
| 325 | * @param xfer The file transfer. | |
| 326 | * | |
| 327 | * @return The port number on this end. | |
| 328 | */ | |
| 15884 | 329 | unsigned int purple_xfer_get_local_port(const PurpleXfer *xfer); |
| 4514 | 330 | |
| 331 | /** | |
| 332 | * Returns the remote IP address in the file transfer. | |
| 333 | * | |
| 334 | * @param xfer The file transfer. | |
| 335 | * | |
| 336 | * @return The IP address on the other end. | |
| 337 | */ | |
| 15884 | 338 | const char *purple_xfer_get_remote_ip(const PurpleXfer *xfer); |
| 4514 | 339 | |
| 340 | /** | |
| 341 | * Returns the remote port number in the file transfer. | |
| 342 | * | |
| 343 | * @param xfer The file transfer. | |
| 344 | * | |
| 345 | * @return The port number on the other end. | |
| 346 | */ | |
| 15884 | 347 | unsigned int purple_xfer_get_remote_port(const PurpleXfer *xfer); |
| 4514 | 348 | |
| 349 | /** | |
| 4538 | 350 | * Sets the completed state for the file transfer. |
| 351 | * | |
| 352 | * @param xfer The file transfer. | |
| 353 | * @param completed The completed state. | |
| 354 | */ | |
| 15884 | 355 | void purple_xfer_set_completed(PurpleXfer *xfer, gboolean completed); |
| 4538 | 356 | |
| 357 | /** | |
| 4514 | 358 | * Sets the filename for the file transfer. |
| 359 | * | |
| 360 | * @param xfer The file transfer. | |
|
9933
61bd3fadbfe6
[gaim-migrate @ 10825]
Dave West <kat@users.sourceforge.net>
parents:
9511
diff
changeset
|
361 | * @param message The message. |
|
61bd3fadbfe6
[gaim-migrate @ 10825]
Dave West <kat@users.sourceforge.net>
parents:
9511
diff
changeset
|
362 | */ |
| 15884 | 363 | void purple_xfer_set_message(PurpleXfer *xfer, const char *message); |
|
9933
61bd3fadbfe6
[gaim-migrate @ 10825]
Dave West <kat@users.sourceforge.net>
parents:
9511
diff
changeset
|
364 | |
|
61bd3fadbfe6
[gaim-migrate @ 10825]
Dave West <kat@users.sourceforge.net>
parents:
9511
diff
changeset
|
365 | /** |
|
61bd3fadbfe6
[gaim-migrate @ 10825]
Dave West <kat@users.sourceforge.net>
parents:
9511
diff
changeset
|
366 | * Sets the filename for the file transfer. |
|
61bd3fadbfe6
[gaim-migrate @ 10825]
Dave West <kat@users.sourceforge.net>
parents:
9511
diff
changeset
|
367 | * |
|
61bd3fadbfe6
[gaim-migrate @ 10825]
Dave West <kat@users.sourceforge.net>
parents:
9511
diff
changeset
|
368 | * @param xfer The file transfer. |
| 4514 | 369 | * @param filename The filename. |
| 370 | */ | |
| 15884 | 371 | void purple_xfer_set_filename(PurpleXfer *xfer, const char *filename); |
| 4514 | 372 | |
| 373 | /** | |
|
4605
67526771e679
[gaim-migrate @ 4892]
Mark Doliner <markdoliner@pidgin.im>
parents:
4595
diff
changeset
|
374 | * Sets the local filename for the file transfer. |
| 4514 | 375 | * |
| 376 | * @param xfer The file transfer. | |
| 377 | * @param filename The filename | |
| 378 | */ | |
| 15884 | 379 | void purple_xfer_set_local_filename(PurpleXfer *xfer, const char *filename); |
| 4514 | 380 | |
| 381 | /** | |
| 382 | * Sets the size of the file in a file transfer. | |
| 383 | * | |
| 384 | * @param xfer The file transfer. | |
| 385 | * @param size The size of the file. | |
| 386 | */ | |
| 15884 | 387 | void purple_xfer_set_size(PurpleXfer *xfer, size_t size); |
| 4514 | 388 | |
| 389 | /** | |
|
15322
cd268e368bc1
[gaim-migrate @ 18050]
Mark Doliner <markdoliner@pidgin.im>
parents:
15280
diff
changeset
|
390 | * Sets the current working position in the active file transfer. This |
|
cd268e368bc1
[gaim-migrate @ 18050]
Mark Doliner <markdoliner@pidgin.im>
parents:
15280
diff
changeset
|
391 | * can be used to jump backward in the file if the protocol detects |
|
cd268e368bc1
[gaim-migrate @ 18050]
Mark Doliner <markdoliner@pidgin.im>
parents:
15280
diff
changeset
|
392 | * that some bit of data needs to be resent or has been sent twice. |
|
cd268e368bc1
[gaim-migrate @ 18050]
Mark Doliner <markdoliner@pidgin.im>
parents:
15280
diff
changeset
|
393 | * |
|
cd268e368bc1
[gaim-migrate @ 18050]
Mark Doliner <markdoliner@pidgin.im>
parents:
15280
diff
changeset
|
394 | * It's used for pausing and resuming an oscar file transfer. |
|
cd268e368bc1
[gaim-migrate @ 18050]
Mark Doliner <markdoliner@pidgin.im>
parents:
15280
diff
changeset
|
395 | * |
|
cd268e368bc1
[gaim-migrate @ 18050]
Mark Doliner <markdoliner@pidgin.im>
parents:
15280
diff
changeset
|
396 | * @param xfer The file transfer. |
|
cd268e368bc1
[gaim-migrate @ 18050]
Mark Doliner <markdoliner@pidgin.im>
parents:
15280
diff
changeset
|
397 | * @param bytes_sent The new current position in the file. If we're |
|
cd268e368bc1
[gaim-migrate @ 18050]
Mark Doliner <markdoliner@pidgin.im>
parents:
15280
diff
changeset
|
398 | * sending a file then this is the byte that we will |
|
cd268e368bc1
[gaim-migrate @ 18050]
Mark Doliner <markdoliner@pidgin.im>
parents:
15280
diff
changeset
|
399 | * send. If we're receiving a file, this is the |
|
cd268e368bc1
[gaim-migrate @ 18050]
Mark Doliner <markdoliner@pidgin.im>
parents:
15280
diff
changeset
|
400 | * next byte that we expect to receive. |
|
cd268e368bc1
[gaim-migrate @ 18050]
Mark Doliner <markdoliner@pidgin.im>
parents:
15280
diff
changeset
|
401 | */ |
| 15884 | 402 | void purple_xfer_set_bytes_sent(PurpleXfer *xfer, size_t bytes_sent); |
|
15322
cd268e368bc1
[gaim-migrate @ 18050]
Mark Doliner <markdoliner@pidgin.im>
parents:
15280
diff
changeset
|
403 | |
|
cd268e368bc1
[gaim-migrate @ 18050]
Mark Doliner <markdoliner@pidgin.im>
parents:
15280
diff
changeset
|
404 | /** |
| 4514 | 405 | * Returns the UI operations structure for a file transfer. |
| 406 | * | |
| 407 | * @param xfer The file transfer. | |
| 408 | * | |
| 409 | * @return The UI operations structure. | |
| 410 | */ | |
| 15884 | 411 | PurpleXferUiOps *purple_xfer_get_ui_ops(const PurpleXfer *xfer); |
| 4514 | 412 | |
| 413 | /** | |
| 414 | * Sets the read function for the file transfer. | |
| 415 | * | |
| 416 | * @param xfer The file transfer. | |
| 417 | * @param fnc The read function. | |
| 418 | */ | |
| 15884 | 419 | void purple_xfer_set_read_fnc(PurpleXfer *xfer, |
| 420 | gssize (*fnc)(guchar **, PurpleXfer *)); | |
| 4514 | 421 | |
| 422 | /** | |
| 423 | * Sets the write function for the file transfer. | |
| 424 | * | |
| 425 | * @param xfer The file transfer. | |
| 426 | * @param fnc The write function. | |
| 427 | */ | |
| 15884 | 428 | void purple_xfer_set_write_fnc(PurpleXfer *xfer, |
| 429 | gssize (*fnc)(const guchar *, size_t, PurpleXfer *)); | |
| 4514 | 430 | |
| 431 | /** | |
| 432 | * Sets the acknowledge function for the file transfer. | |
| 433 | * | |
| 434 | * @param xfer The file transfer. | |
| 435 | * @param fnc The acknowledge function. | |
| 436 | */ | |
| 15884 | 437 | void purple_xfer_set_ack_fnc(PurpleXfer *xfer, |
| 438 | void (*fnc)(PurpleXfer *, const guchar *, size_t)); | |
| 4514 | 439 | |
| 440 | /** | |
| 7805 | 441 | * Sets the function to be called if the request is denied. |
| 442 | * | |
| 443 | * @param xfer The file transfer. | |
| 444 | * @param fnc The request denied prpl callback. | |
| 445 | */ | |
| 15884 | 446 | void purple_xfer_set_request_denied_fnc(PurpleXfer *xfer, void (*fnc)(PurpleXfer *)); |
| 7805 | 447 | |
| 448 | /** | |
| 4514 | 449 | * Sets the transfer initialization function for the file transfer. |
| 450 | * | |
| 15884 | 451 | * This function is required, and must call purple_xfer_start() with |
| 4514 | 452 | * the necessary parameters. This will be called if the file transfer |
| 453 | * is accepted by the user. | |
| 454 | * | |
| 455 | * @param xfer The file transfer. | |
| 456 | * @param fnc The transfer initialization function. | |
| 457 | */ | |
| 15884 | 458 | void purple_xfer_set_init_fnc(PurpleXfer *xfer, void (*fnc)(PurpleXfer *)); |
| 4514 | 459 | |
| 460 | /** | |
| 461 | * Sets the start transfer function for the file transfer. | |
| 462 | * | |
| 463 | * @param xfer The file transfer. | |
| 464 | * @param fnc The start transfer function. | |
| 465 | */ | |
| 15884 | 466 | void purple_xfer_set_start_fnc(PurpleXfer *xfer, void (*fnc)(PurpleXfer *)); |
| 4514 | 467 | |
| 468 | /** | |
| 469 | * Sets the end transfer function for the file transfer. | |
| 470 | * | |
| 471 | * @param xfer The file transfer. | |
| 472 | * @param fnc The end transfer function. | |
| 473 | */ | |
| 15884 | 474 | void purple_xfer_set_end_fnc(PurpleXfer *xfer, void (*fnc)(PurpleXfer *)); |
| 4514 | 475 | |
| 476 | /** | |
|
4675
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
477 | * Sets the cancel send function for the file transfer. |
| 4514 | 478 | * |
| 479 | * @param xfer The file transfer. | |
|
4675
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
480 | * @param fnc The cancel send function. |
| 4514 | 481 | */ |
| 15884 | 482 | void purple_xfer_set_cancel_send_fnc(PurpleXfer *xfer, void (*fnc)(PurpleXfer *)); |
|
4675
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
483 | |
|
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
484 | /** |
|
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
485 | * Sets the cancel receive function for the file transfer. |
|
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
486 | * |
|
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
487 | * @param xfer The file transfer. |
|
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
488 | * @param fnc The cancel receive function. |
|
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
489 | */ |
| 15884 | 490 | void purple_xfer_set_cancel_recv_fnc(PurpleXfer *xfer, void (*fnc)(PurpleXfer *)); |
| 4514 | 491 | |
| 492 | /** | |
| 493 | * Reads in data from a file transfer stream. | |
| 494 | * | |
| 495 | * @param xfer The file transfer. | |
| 496 | * @param buffer The buffer that will be created to contain the data. | |
| 497 | * | |
| 8231 | 498 | * @return The number of bytes read, or -1. |
| 4514 | 499 | */ |
| 15884 | 500 | gssize purple_xfer_read(PurpleXfer *xfer, guchar **buffer); |
| 4514 | 501 | |
| 502 | /** | |
| 503 | * Writes data to a file transfer stream. | |
| 504 | * | |
| 505 | * @param xfer The file transfer. | |
| 506 | * @param buffer The buffer to read the data from. | |
| 507 | * @param size The number of bytes to write. | |
| 508 | * | |
| 8231 | 509 | * @return The number of bytes written, or -1. |
| 4514 | 510 | */ |
| 15884 | 511 | gssize purple_xfer_write(PurpleXfer *xfer, const guchar *buffer, gsize size); |
| 4514 | 512 | |
| 513 | /** | |
| 514 | * Starts a file transfer. | |
| 515 | * | |
| 516 | * Either @a fd must be specified <i>or</i> @a ip and @a port on a | |
| 517 | * file receive transfer. On send, @a fd must be specified, and | |
| 518 | * @a ip and @a port are ignored. | |
| 519 | * | |
| 520 | * @param xfer The file transfer. | |
| 521 | * @param fd The file descriptor for the socket. | |
| 522 | * @param ip The IP address to connect to. | |
| 523 | * @param port The port to connect to. | |
| 524 | */ | |
| 15884 | 525 | void purple_xfer_start(PurpleXfer *xfer, int fd, const char *ip, |
| 4514 | 526 | unsigned int port); |
| 527 | ||
| 528 | /** | |
| 529 | * Ends a file transfer. | |
| 530 | * | |
| 531 | * @param xfer The file transfer. | |
| 532 | */ | |
| 15884 | 533 | void purple_xfer_end(PurpleXfer *xfer); |
| 4514 | 534 | |
| 535 | /** | |
|
8585
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
536 | * Adds a new file transfer to the list of file transfers. Call this only |
| 15884 | 537 | * if you are not using purple_xfer_start. |
|
8585
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
538 | * |
|
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
539 | * @param xfer The file transfer. |
|
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
540 | */ |
| 15884 | 541 | void purple_xfer_add(PurpleXfer *xfer); |
|
8585
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
542 | |
|
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
543 | /** |
|
4675
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
544 | * Cancels a file transfer on the local end. |
| 4514 | 545 | * |
| 546 | * @param xfer The file transfer. | |
| 547 | */ | |
| 15884 | 548 | void purple_xfer_cancel_local(PurpleXfer *xfer); |
|
4675
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
549 | |
|
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
550 | /** |
|
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
551 | * Cancels a file transfer from the remote end. |
|
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
552 | * |
|
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
553 | * @param xfer The file transfer. |
|
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
554 | */ |
| 15884 | 555 | void purple_xfer_cancel_remote(PurpleXfer *xfer); |
| 4514 | 556 | |
| 557 | /** | |
| 558 | * Displays a file transfer-related error message. | |
| 559 | * | |
| 15884 | 560 | * This is a wrapper around purple_notify_error(), which automatically |
| 10654 | 561 | * specifies a title ("File transfer to <i>user</i> failed" or |
| 562 | * "File Transfer from <i>user</i> failed"). | |
| 4514 | 563 | * |
| 10654 | 564 | * @param type The type of file transfer. |
| 565 | * @param account The account sending or receiving the file. | |
| 566 | * @param who The user on the other end of the transfer. | |
| 567 | * @param msg The message to display. | |
| 4514 | 568 | */ |
| 15884 | 569 | void purple_xfer_error(PurpleXferType type, PurpleAccount *account, const char *who, const char *msg); |
| 4514 | 570 | |
|
8585
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
571 | /** |
|
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
572 | * Updates file transfer progress. |
|
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
573 | * |
|
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
574 | * @param xfer The file transfer. |
|
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
575 | */ |
| 15884 | 576 | void purple_xfer_update_progress(PurpleXfer *xfer); |
|
8585
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
577 | |
|
11084
b6acee973833
[gaim-migrate @ 13103]
Jonathan Clark <ardentlygnarly@users.sourceforge.net>
parents:
10654
diff
changeset
|
578 | /** |
|
b6acee973833
[gaim-migrate @ 13103]
Jonathan Clark <ardentlygnarly@users.sourceforge.net>
parents:
10654
diff
changeset
|
579 | * Displays a file transfer-related message in the conversation window |
|
b6acee973833
[gaim-migrate @ 13103]
Jonathan Clark <ardentlygnarly@users.sourceforge.net>
parents:
10654
diff
changeset
|
580 | * |
| 15884 | 581 | * This is a wrapper around purple_conversation_write |
|
11084
b6acee973833
[gaim-migrate @ 13103]
Jonathan Clark <ardentlygnarly@users.sourceforge.net>
parents:
10654
diff
changeset
|
582 | * |
|
b6acee973833
[gaim-migrate @ 13103]
Jonathan Clark <ardentlygnarly@users.sourceforge.net>
parents:
10654
diff
changeset
|
583 | * @param xfer The file transfer to which this message relates. |
|
b6acee973833
[gaim-migrate @ 13103]
Jonathan Clark <ardentlygnarly@users.sourceforge.net>
parents:
10654
diff
changeset
|
584 | * @param message The message to display. |
|
11129
c986d8566843
[gaim-migrate @ 13185]
Mark Doliner <markdoliner@pidgin.im>
parents:
11084
diff
changeset
|
585 | * @param is_error Is this an error message?. |
|
11084
b6acee973833
[gaim-migrate @ 13103]
Jonathan Clark <ardentlygnarly@users.sourceforge.net>
parents:
10654
diff
changeset
|
586 | */ |
| 15884 | 587 | void purple_xfer_conversation_write(PurpleXfer *xfer, char *message, gboolean is_error); |
|
11084
b6acee973833
[gaim-migrate @ 13103]
Jonathan Clark <ardentlygnarly@users.sourceforge.net>
parents:
10654
diff
changeset
|
588 | |
|
6263
6fec763a314c
[gaim-migrate @ 6760]
Christian Hammond <chipx86@chipx86.com>
parents:
6241
diff
changeset
|
589 | /*@}*/ |
|
6fec763a314c
[gaim-migrate @ 6760]
Christian Hammond <chipx86@chipx86.com>
parents:
6241
diff
changeset
|
590 | |
|
6fec763a314c
[gaim-migrate @ 6760]
Christian Hammond <chipx86@chipx86.com>
parents:
6241
diff
changeset
|
591 | /**************************************************************************/ |
| 4514 | 592 | /** @name UI Registration Functions */ |
| 593 | /**************************************************************************/ | |
| 594 | /*@{*/ | |
| 595 | ||
| 596 | /** | |
|
11281
a5cda37a16be
[gaim-migrate @ 13478]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
597 | * Returns the handle to the file transfer subsystem |
|
a5cda37a16be
[gaim-migrate @ 13478]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
598 | * |
|
a5cda37a16be
[gaim-migrate @ 13478]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
599 | * @return The handle |
|
a5cda37a16be
[gaim-migrate @ 13478]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
600 | */ |
| 15884 | 601 | void *purple_xfers_get_handle(void); |
|
11281
a5cda37a16be
[gaim-migrate @ 13478]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
602 | |
|
a5cda37a16be
[gaim-migrate @ 13478]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
603 | /** |
|
a5cda37a16be
[gaim-migrate @ 13478]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
604 | * Initializes the file transfer subsystem |
|
a5cda37a16be
[gaim-migrate @ 13478]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
605 | */ |
| 15884 | 606 | void purple_xfers_init(void); |
|
11281
a5cda37a16be
[gaim-migrate @ 13478]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
607 | |
|
a5cda37a16be
[gaim-migrate @ 13478]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
608 | /** |
|
a5cda37a16be
[gaim-migrate @ 13478]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
609 | * Uninitializes the file transfer subsystem |
|
a5cda37a16be
[gaim-migrate @ 13478]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
610 | */ |
| 15884 | 611 | void purple_xfers_uninit(void); |
|
11281
a5cda37a16be
[gaim-migrate @ 13478]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
612 | |
|
a5cda37a16be
[gaim-migrate @ 13478]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
613 | /** |
| 15884 | 614 | * Sets the UI operations structure to be used in all purple file transfers. |
| 4514 | 615 | * |
|
6720
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6269
diff
changeset
|
616 | * @param ops The UI operations structure. |
| 4514 | 617 | */ |
| 15884 | 618 | void purple_xfers_set_ui_ops(PurpleXferUiOps *ops); |
| 4514 | 619 | |
| 620 | /** | |
| 15884 | 621 | * Returns the UI operations structure to be used in all purple file transfers. |
| 4514 | 622 | * |
| 623 | * @return The UI operations structure. | |
| 624 | */ | |
| 15884 | 625 | PurpleXferUiOps *purple_xfers_get_ui_ops(void); |
| 4514 | 626 | |
| 627 | /*@}*/ | |
| 628 | ||
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
629 | #ifdef __cplusplus |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
630 | } |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
631 | #endif |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
632 | |
| 15884 | 633 | #endif /* _PURPLE_FT_H_ */ |