Wed, 25 Apr 2007 21:48:56 +0000
Updates for the account buddy icon stuff. This doesn't yet work fully (and maybe not even partly), but it compiles.
| 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 | |
| 15884 | 80 | } PurpleXferUiOps; |
| 4514 | 81 | |
| 82 | /** | |
| 83 | * A core representation of a file transfer. | |
| 84 | */ | |
| 15884 | 85 | struct _PurpleXfer |
| 4514 | 86 | { |
|
15280
9df6112da532
[gaim-migrate @ 18008]
Mark Doliner <markdoliner@pidgin.im>
parents:
15000
diff
changeset
|
87 | guint ref; /**< The reference count. */ |
| 15884 | 88 | PurpleXferType type; /**< The type of transfer. */ |
| 4514 | 89 | |
| 15884 | 90 | PurpleAccount *account; /**< The account. */ |
| 4514 | 91 | |
| 92 | char *who; /**< The person on the other end of the | |
| 93 | transfer. */ | |
| 94 | ||
|
9933
61bd3fadbfe6
[gaim-migrate @ 10825]
Dave West <kat@users.sourceforge.net>
parents:
9511
diff
changeset
|
95 | char *message; /**< A message sent with the request */ |
|
4605
67526771e679
[gaim-migrate @ 4892]
Mark Doliner <markdoliner@pidgin.im>
parents:
4595
diff
changeset
|
96 | char *filename; /**< The name sent over the network. */ |
|
67526771e679
[gaim-migrate @ 4892]
Mark Doliner <markdoliner@pidgin.im>
parents:
4595
diff
changeset
|
97 | char *local_filename; /**< The name on the local hard drive. */ |
| 4514 | 98 | size_t size; /**< The size of the file. */ |
| 99 | ||
| 100 | FILE *dest_fp; /**< The destination file pointer. */ | |
| 101 | ||
| 102 | char *remote_ip; /**< The remote IP address. */ | |
| 103 | int local_port; /**< The local port. */ | |
| 104 | int remote_port; /**< The remote port. */ | |
| 105 | ||
| 106 | int fd; /**< The socket file descriptor. */ | |
| 107 | int watcher; /**< Watcher. */ | |
| 108 | ||
| 109 | size_t bytes_sent; /**< The number of bytes sent. */ | |
| 110 | size_t bytes_remaining; /**< The number of bytes remaining. */ | |
|
13599
b6369e541654
[gaim-migrate @ 15984]
Mark Doliner <markdoliner@pidgin.im>
parents:
13009
diff
changeset
|
111 | time_t start_time; /**< When the transfer of data began. */ |
|
b6369e541654
[gaim-migrate @ 15984]
Mark Doliner <markdoliner@pidgin.im>
parents:
13009
diff
changeset
|
112 | time_t end_time; /**< When the transfer of data ended. */ |
| 4514 | 113 | |
|
15280
9df6112da532
[gaim-migrate @ 18008]
Mark Doliner <markdoliner@pidgin.im>
parents:
15000
diff
changeset
|
114 | size_t current_buffer_size; /**< This gradually increases for fast |
|
9df6112da532
[gaim-migrate @ 18008]
Mark Doliner <markdoliner@pidgin.im>
parents:
15000
diff
changeset
|
115 | network connections. */ |
|
9df6112da532
[gaim-migrate @ 18008]
Mark Doliner <markdoliner@pidgin.im>
parents:
15000
diff
changeset
|
116 | |
| 15884 | 117 | PurpleXferStatusType status; /**< File Transfer's status. */ |
| 4538 | 118 | |
| 4514 | 119 | /* I/O operations. */ |
| 120 | struct | |
| 121 | { | |
| 15884 | 122 | void (*init)(PurpleXfer *xfer); |
| 123 | void (*request_denied)(PurpleXfer *xfer); | |
| 124 | void (*start)(PurpleXfer *xfer); | |
| 125 | void (*end)(PurpleXfer *xfer); | |
| 126 | void (*cancel_send)(PurpleXfer *xfer); | |
| 127 | void (*cancel_recv)(PurpleXfer *xfer); | |
| 128 | gssize (*read)(guchar **buffer, PurpleXfer *xfer); | |
| 129 | gssize (*write)(const guchar *buffer, size_t size, PurpleXfer *xfer); | |
| 130 | void (*ack)(PurpleXfer *xfer, const guchar *buffer, size_t size); | |
| 4514 | 131 | |
| 132 | } ops; | |
| 133 | ||
| 15884 | 134 | PurpleXferUiOps *ui_ops; /**< UI-specific operations. */ |
| 4514 | 135 | void *ui_data; /**< UI-specific data. */ |
| 136 | ||
| 137 | void *data; /**< prpl-specific data. */ | |
| 138 | }; | |
| 139 | ||
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
140 | #ifdef __cplusplus |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
141 | extern "C" { |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
142 | #endif |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
143 | |
| 4514 | 144 | /**************************************************************************/ |
| 145 | /** @name File Transfer API */ | |
| 146 | /**************************************************************************/ | |
| 147 | /*@{*/ | |
| 148 | ||
| 149 | /** | |
| 150 | * Creates a new file transfer handle. | |
| 7805 | 151 | * This is called by prpls. |
| 152 | * The handle starts with a ref count of 1, and this reference | |
| 153 | * is owned by the core. The prpl normally does not need to | |
| 15884 | 154 | * purple_xfer_ref or unref. |
| 4514 | 155 | * |
| 156 | * @param account The account sending or receiving the file. | |
| 157 | * @param type The type of file transfer. | |
| 158 | * @param who The name of the remote user. | |
| 159 | * | |
| 160 | * @return A file transfer handle. | |
| 161 | */ | |
| 15884 | 162 | PurpleXfer *purple_xfer_new(PurpleAccount *account, |
| 163 | PurpleXferType type, const char *who); | |
| 4514 | 164 | |
| 165 | /** | |
|
15702
111fdd9108cc
Patch from Richard 'wabz' Nelson to add file-transfer ui. Amazing stuff\!
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15435
diff
changeset
|
166 | * 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
|
167 | * |
|
111fdd9108cc
Patch from Richard 'wabz' Nelson to add file-transfer ui. Amazing stuff\!
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15435
diff
changeset
|
168 | * @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
|
169 | */ |
| 15884 | 170 | 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
|
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 | /** |
| 15884 | 173 | * Increases the reference count on a PurpleXfer. |
| 174 | * Please call purple_xfer_unref later. | |
| 4514 | 175 | * |
| 7805 | 176 | * @param xfer A file transfer handle. |
| 4514 | 177 | */ |
| 15884 | 178 | void purple_xfer_ref(PurpleXfer *xfer); |
| 7805 | 179 | |
| 180 | /** | |
| 15884 | 181 | * Decreases the reference count on a PurpleXfer. |
| 182 | * If the reference reaches 0, purple_xfer_destroy (an internal function) | |
| 7805 | 183 | * 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
|
184 | * Since the core keeps a ref on the xfer, only an erroneous call to |
| 7805 | 185 | * this function will destroy the xfer while still in use. |
| 186 | * | |
| 187 | * @param xfer A file transfer handle. | |
| 188 | */ | |
| 15884 | 189 | void purple_xfer_unref(PurpleXfer *xfer); |
| 4514 | 190 | |
| 191 | /** | |
|
8585
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
192 | * Requests confirmation for a file transfer from the user. If receiving |
|
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
193 | * 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
|
194 | * 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
|
195 | * 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
|
196 | * again once the filename is available. |
| 4514 | 197 | * |
| 198 | * @param xfer The file transfer to request confirmation on. | |
| 199 | */ | |
| 15884 | 200 | void purple_xfer_request(PurpleXfer *xfer); |
| 4514 | 201 | |
| 202 | /** | |
| 203 | * Called if the user accepts the file transfer request. | |
| 204 | * | |
| 205 | * @param xfer The file transfer. | |
| 206 | * @param filename The filename. | |
| 207 | */ | |
| 15884 | 208 | void purple_xfer_request_accepted(PurpleXfer *xfer, const char *filename); |
| 4514 | 209 | |
| 210 | /** | |
| 211 | * Called if the user rejects the file transfer request. | |
| 212 | * | |
| 213 | * @param xfer The file transfer. | |
| 214 | */ | |
| 15884 | 215 | void purple_xfer_request_denied(PurpleXfer *xfer); |
| 4514 | 216 | |
| 217 | /** | |
| 218 | * Returns the type of file transfer. | |
| 219 | * | |
| 220 | * @param xfer The file transfer. | |
| 221 | * | |
| 222 | * @return The type of the file transfer. | |
| 223 | */ | |
| 15884 | 224 | PurpleXferType purple_xfer_get_type(const PurpleXfer *xfer); |
| 4514 | 225 | |
| 226 | /** | |
| 227 | * Returns the account the file transfer is using. | |
| 228 | * | |
| 229 | * @param xfer The file transfer. | |
| 230 | * | |
| 231 | * @return The account. | |
| 232 | */ | |
| 15884 | 233 | PurpleAccount *purple_xfer_get_account(const PurpleXfer *xfer); |
| 4514 | 234 | |
| 235 | /** | |
| 7805 | 236 | * Returns the status of the xfer. |
| 237 | * | |
| 238 | * @param xfer The file transfer. | |
| 239 | * | |
| 240 | * @return The status. | |
| 241 | */ | |
| 15884 | 242 | PurpleXferStatusType purple_xfer_get_status(const PurpleXfer *xfer); |
| 7805 | 243 | |
| 244 | /** | |
| 7738 | 245 | * Returns true if the file transfer was canceled. |
| 246 | * | |
| 247 | * @param xfer The file transfer. | |
| 248 | * | |
| 249 | * @return Whether or not the transfer was canceled. | |
| 250 | */ | |
| 15884 | 251 | gboolean purple_xfer_is_canceled(const PurpleXfer *xfer); |
| 7738 | 252 | |
| 253 | /** | |
|
4539
44671e1ce14e
[gaim-migrate @ 4818]
Christian Hammond <chipx86@chipx86.com>
parents:
4538
diff
changeset
|
254 | * Returns the completed state for a file transfer. |
|
44671e1ce14e
[gaim-migrate @ 4818]
Christian Hammond <chipx86@chipx86.com>
parents:
4538
diff
changeset
|
255 | * |
|
44671e1ce14e
[gaim-migrate @ 4818]
Christian Hammond <chipx86@chipx86.com>
parents:
4538
diff
changeset
|
256 | * @param xfer The file transfer. |
|
44671e1ce14e
[gaim-migrate @ 4818]
Christian Hammond <chipx86@chipx86.com>
parents:
4538
diff
changeset
|
257 | * |
|
44671e1ce14e
[gaim-migrate @ 4818]
Christian Hammond <chipx86@chipx86.com>
parents:
4538
diff
changeset
|
258 | * @return The completed state. |
|
44671e1ce14e
[gaim-migrate @ 4818]
Christian Hammond <chipx86@chipx86.com>
parents:
4538
diff
changeset
|
259 | */ |
| 15884 | 260 | gboolean purple_xfer_is_completed(const PurpleXfer *xfer); |
|
4539
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 | /** |
| 4514 | 263 | * Returns the name of the file being sent or received. |
| 264 | * | |
| 265 | * @param xfer The file transfer. | |
| 266 | * | |
| 267 | * @return The filename. | |
| 268 | */ | |
| 15884 | 269 | const char *purple_xfer_get_filename(const PurpleXfer *xfer); |
| 4514 | 270 | |
| 271 | /** | |
| 272 | * Returns the file's destination filename, | |
| 273 | * | |
| 274 | * @param xfer The file transfer. | |
| 275 | * | |
| 276 | * @return The destination filename. | |
| 277 | */ | |
| 15884 | 278 | const char *purple_xfer_get_local_filename(const PurpleXfer *xfer); |
| 4514 | 279 | |
| 280 | /** | |
|
13009
12ef9f229961
[gaim-migrate @ 15362]
Daniel Atallah <datallah@pidgin.im>
parents:
12151
diff
changeset
|
281 | * Returns the number of bytes sent (or received) so far. |
| 4514 | 282 | * |
| 283 | * @param xfer The file transfer. | |
| 284 | * | |
| 285 | * @return The number of bytes sent. | |
| 286 | */ | |
| 15884 | 287 | size_t purple_xfer_get_bytes_sent(const PurpleXfer *xfer); |
| 4514 | 288 | |
| 289 | /** | |
|
13009
12ef9f229961
[gaim-migrate @ 15362]
Daniel Atallah <datallah@pidgin.im>
parents:
12151
diff
changeset
|
290 | * Returns the number of bytes remaining to send or receive. |
| 4514 | 291 | * |
| 292 | * @param xfer The file transfer. | |
| 293 | * | |
|
13009
12ef9f229961
[gaim-migrate @ 15362]
Daniel Atallah <datallah@pidgin.im>
parents:
12151
diff
changeset
|
294 | * @return The number of bytes remaining. |
| 4514 | 295 | */ |
| 15884 | 296 | size_t purple_xfer_get_bytes_remaining(const PurpleXfer *xfer); |
| 4514 | 297 | |
| 298 | /** | |
| 299 | * Returns the size of the file being sent or received. | |
| 300 | * | |
| 301 | * @param xfer The file transfer. | |
| 7805 | 302 | * |
| 4514 | 303 | * @return The total size of the file. |
| 304 | */ | |
| 15884 | 305 | size_t purple_xfer_get_size(const PurpleXfer *xfer); |
| 4514 | 306 | |
| 307 | /** | |
| 308 | * Returns the current percentage of progress of the transfer. | |
| 309 | * | |
| 310 | * This is a number between 0 (0%) and 1 (100%). | |
| 311 | * | |
| 312 | * @param xfer The file transfer. | |
| 313 | * | |
| 314 | * @return The percentage complete. | |
| 315 | */ | |
| 15884 | 316 | double purple_xfer_get_progress(const PurpleXfer *xfer); |
| 4514 | 317 | |
| 318 | /** | |
| 319 | * Returns the local port number in the file transfer. | |
| 320 | * | |
| 321 | * @param xfer The file transfer. | |
| 322 | * | |
| 323 | * @return The port number on this end. | |
| 324 | */ | |
| 15884 | 325 | unsigned int purple_xfer_get_local_port(const PurpleXfer *xfer); |
| 4514 | 326 | |
| 327 | /** | |
| 328 | * Returns the remote IP address in the file transfer. | |
| 329 | * | |
| 330 | * @param xfer The file transfer. | |
| 331 | * | |
| 332 | * @return The IP address on the other end. | |
| 333 | */ | |
| 15884 | 334 | const char *purple_xfer_get_remote_ip(const PurpleXfer *xfer); |
| 4514 | 335 | |
| 336 | /** | |
| 337 | * Returns the remote port number in the file transfer. | |
| 338 | * | |
| 339 | * @param xfer The file transfer. | |
| 340 | * | |
| 341 | * @return The port number on the other end. | |
| 342 | */ | |
| 15884 | 343 | unsigned int purple_xfer_get_remote_port(const PurpleXfer *xfer); |
| 4514 | 344 | |
| 345 | /** | |
| 4538 | 346 | * Sets the completed state for the file transfer. |
| 347 | * | |
| 348 | * @param xfer The file transfer. | |
| 349 | * @param completed The completed state. | |
| 350 | */ | |
| 15884 | 351 | void purple_xfer_set_completed(PurpleXfer *xfer, gboolean completed); |
| 4538 | 352 | |
| 353 | /** | |
| 4514 | 354 | * Sets the filename for the file transfer. |
| 355 | * | |
| 356 | * @param xfer The file transfer. | |
|
9933
61bd3fadbfe6
[gaim-migrate @ 10825]
Dave West <kat@users.sourceforge.net>
parents:
9511
diff
changeset
|
357 | * @param message The message. |
|
61bd3fadbfe6
[gaim-migrate @ 10825]
Dave West <kat@users.sourceforge.net>
parents:
9511
diff
changeset
|
358 | */ |
| 15884 | 359 | 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
|
360 | |
|
61bd3fadbfe6
[gaim-migrate @ 10825]
Dave West <kat@users.sourceforge.net>
parents:
9511
diff
changeset
|
361 | /** |
|
61bd3fadbfe6
[gaim-migrate @ 10825]
Dave West <kat@users.sourceforge.net>
parents:
9511
diff
changeset
|
362 | * Sets the filename for the file transfer. |
|
61bd3fadbfe6
[gaim-migrate @ 10825]
Dave West <kat@users.sourceforge.net>
parents:
9511
diff
changeset
|
363 | * |
|
61bd3fadbfe6
[gaim-migrate @ 10825]
Dave West <kat@users.sourceforge.net>
parents:
9511
diff
changeset
|
364 | * @param xfer The file transfer. |
| 4514 | 365 | * @param filename The filename. |
| 366 | */ | |
| 15884 | 367 | void purple_xfer_set_filename(PurpleXfer *xfer, const char *filename); |
| 4514 | 368 | |
| 369 | /** | |
|
4605
67526771e679
[gaim-migrate @ 4892]
Mark Doliner <markdoliner@pidgin.im>
parents:
4595
diff
changeset
|
370 | * Sets the local filename for the file transfer. |
| 4514 | 371 | * |
| 372 | * @param xfer The file transfer. | |
| 373 | * @param filename The filename | |
| 374 | */ | |
| 15884 | 375 | void purple_xfer_set_local_filename(PurpleXfer *xfer, const char *filename); |
| 4514 | 376 | |
| 377 | /** | |
| 378 | * Sets the size of the file in a file transfer. | |
| 379 | * | |
| 380 | * @param xfer The file transfer. | |
| 381 | * @param size The size of the file. | |
| 382 | */ | |
| 15884 | 383 | void purple_xfer_set_size(PurpleXfer *xfer, size_t size); |
| 4514 | 384 | |
| 385 | /** | |
|
15322
cd268e368bc1
[gaim-migrate @ 18050]
Mark Doliner <markdoliner@pidgin.im>
parents:
15280
diff
changeset
|
386 | * Sets the current working position in the active file transfer. This |
|
cd268e368bc1
[gaim-migrate @ 18050]
Mark Doliner <markdoliner@pidgin.im>
parents:
15280
diff
changeset
|
387 | * 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
|
388 | * 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
|
389 | * |
|
cd268e368bc1
[gaim-migrate @ 18050]
Mark Doliner <markdoliner@pidgin.im>
parents:
15280
diff
changeset
|
390 | * It's used for pausing and resuming an oscar file transfer. |
|
cd268e368bc1
[gaim-migrate @ 18050]
Mark Doliner <markdoliner@pidgin.im>
parents:
15280
diff
changeset
|
391 | * |
|
cd268e368bc1
[gaim-migrate @ 18050]
Mark Doliner <markdoliner@pidgin.im>
parents:
15280
diff
changeset
|
392 | * @param xfer The file transfer. |
|
cd268e368bc1
[gaim-migrate @ 18050]
Mark Doliner <markdoliner@pidgin.im>
parents:
15280
diff
changeset
|
393 | * @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
|
394 | * sending a file then this is the byte that we will |
|
cd268e368bc1
[gaim-migrate @ 18050]
Mark Doliner <markdoliner@pidgin.im>
parents:
15280
diff
changeset
|
395 | * send. If we're receiving a file, this is the |
|
cd268e368bc1
[gaim-migrate @ 18050]
Mark Doliner <markdoliner@pidgin.im>
parents:
15280
diff
changeset
|
396 | * next byte that we expect to receive. |
|
cd268e368bc1
[gaim-migrate @ 18050]
Mark Doliner <markdoliner@pidgin.im>
parents:
15280
diff
changeset
|
397 | */ |
| 15884 | 398 | 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
|
399 | |
|
cd268e368bc1
[gaim-migrate @ 18050]
Mark Doliner <markdoliner@pidgin.im>
parents:
15280
diff
changeset
|
400 | /** |
| 4514 | 401 | * Returns the UI operations structure for a file transfer. |
| 402 | * | |
| 403 | * @param xfer The file transfer. | |
| 404 | * | |
| 405 | * @return The UI operations structure. | |
| 406 | */ | |
| 15884 | 407 | PurpleXferUiOps *purple_xfer_get_ui_ops(const PurpleXfer *xfer); |
| 4514 | 408 | |
| 409 | /** | |
| 410 | * Sets the read function for the file transfer. | |
| 411 | * | |
| 412 | * @param xfer The file transfer. | |
| 413 | * @param fnc The read function. | |
| 414 | */ | |
| 15884 | 415 | void purple_xfer_set_read_fnc(PurpleXfer *xfer, |
| 416 | gssize (*fnc)(guchar **, PurpleXfer *)); | |
| 4514 | 417 | |
| 418 | /** | |
| 419 | * Sets the write function for the file transfer. | |
| 420 | * | |
| 421 | * @param xfer The file transfer. | |
| 422 | * @param fnc The write function. | |
| 423 | */ | |
| 15884 | 424 | void purple_xfer_set_write_fnc(PurpleXfer *xfer, |
| 425 | gssize (*fnc)(const guchar *, size_t, PurpleXfer *)); | |
| 4514 | 426 | |
| 427 | /** | |
| 428 | * Sets the acknowledge function for the file transfer. | |
| 429 | * | |
| 430 | * @param xfer The file transfer. | |
| 431 | * @param fnc The acknowledge function. | |
| 432 | */ | |
| 15884 | 433 | void purple_xfer_set_ack_fnc(PurpleXfer *xfer, |
| 434 | void (*fnc)(PurpleXfer *, const guchar *, size_t)); | |
| 4514 | 435 | |
| 436 | /** | |
| 7805 | 437 | * Sets the function to be called if the request is denied. |
| 438 | * | |
| 439 | * @param xfer The file transfer. | |
| 440 | * @param fnc The request denied prpl callback. | |
| 441 | */ | |
| 15884 | 442 | void purple_xfer_set_request_denied_fnc(PurpleXfer *xfer, void (*fnc)(PurpleXfer *)); |
| 7805 | 443 | |
| 444 | /** | |
| 4514 | 445 | * Sets the transfer initialization function for the file transfer. |
| 446 | * | |
| 15884 | 447 | * This function is required, and must call purple_xfer_start() with |
| 4514 | 448 | * the necessary parameters. This will be called if the file transfer |
| 449 | * is accepted by the user. | |
| 450 | * | |
| 451 | * @param xfer The file transfer. | |
| 452 | * @param fnc The transfer initialization function. | |
| 453 | */ | |
| 15884 | 454 | void purple_xfer_set_init_fnc(PurpleXfer *xfer, void (*fnc)(PurpleXfer *)); |
| 4514 | 455 | |
| 456 | /** | |
| 457 | * Sets the start transfer function for the file transfer. | |
| 458 | * | |
| 459 | * @param xfer The file transfer. | |
| 460 | * @param fnc The start transfer function. | |
| 461 | */ | |
| 15884 | 462 | void purple_xfer_set_start_fnc(PurpleXfer *xfer, void (*fnc)(PurpleXfer *)); |
| 4514 | 463 | |
| 464 | /** | |
| 465 | * Sets the end transfer function for the file transfer. | |
| 466 | * | |
| 467 | * @param xfer The file transfer. | |
| 468 | * @param fnc The end transfer function. | |
| 469 | */ | |
| 15884 | 470 | void purple_xfer_set_end_fnc(PurpleXfer *xfer, void (*fnc)(PurpleXfer *)); |
| 4514 | 471 | |
| 472 | /** | |
|
4675
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
473 | * Sets the cancel send function for the file transfer. |
| 4514 | 474 | * |
| 475 | * @param xfer The file transfer. | |
|
4675
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
476 | * @param fnc The cancel send function. |
| 4514 | 477 | */ |
| 15884 | 478 | 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
|
479 | |
|
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
480 | /** |
|
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
481 | * Sets the cancel receive function for the file transfer. |
|
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
482 | * |
|
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
483 | * @param xfer The file transfer. |
|
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
484 | * @param fnc The cancel receive function. |
|
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
485 | */ |
| 15884 | 486 | void purple_xfer_set_cancel_recv_fnc(PurpleXfer *xfer, void (*fnc)(PurpleXfer *)); |
| 4514 | 487 | |
| 488 | /** | |
| 489 | * Reads in data from a file transfer stream. | |
| 490 | * | |
| 491 | * @param xfer The file transfer. | |
| 492 | * @param buffer The buffer that will be created to contain the data. | |
| 493 | * | |
| 8231 | 494 | * @return The number of bytes read, or -1. |
| 4514 | 495 | */ |
| 15884 | 496 | gssize purple_xfer_read(PurpleXfer *xfer, guchar **buffer); |
| 4514 | 497 | |
| 498 | /** | |
| 499 | * Writes data to a file transfer stream. | |
| 500 | * | |
| 501 | * @param xfer The file transfer. | |
| 502 | * @param buffer The buffer to read the data from. | |
| 503 | * @param size The number of bytes to write. | |
| 504 | * | |
| 8231 | 505 | * @return The number of bytes written, or -1. |
| 4514 | 506 | */ |
| 15884 | 507 | gssize purple_xfer_write(PurpleXfer *xfer, const guchar *buffer, gsize size); |
| 4514 | 508 | |
| 509 | /** | |
| 510 | * Starts a file transfer. | |
| 511 | * | |
| 512 | * Either @a fd must be specified <i>or</i> @a ip and @a port on a | |
| 513 | * file receive transfer. On send, @a fd must be specified, and | |
| 514 | * @a ip and @a port are ignored. | |
| 515 | * | |
| 516 | * @param xfer The file transfer. | |
| 517 | * @param fd The file descriptor for the socket. | |
| 518 | * @param ip The IP address to connect to. | |
| 519 | * @param port The port to connect to. | |
| 520 | */ | |
| 15884 | 521 | void purple_xfer_start(PurpleXfer *xfer, int fd, const char *ip, |
| 4514 | 522 | unsigned int port); |
| 523 | ||
| 524 | /** | |
| 525 | * Ends a file transfer. | |
| 526 | * | |
| 527 | * @param xfer The file transfer. | |
| 528 | */ | |
| 15884 | 529 | void purple_xfer_end(PurpleXfer *xfer); |
| 4514 | 530 | |
| 531 | /** | |
|
8585
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
532 | * Adds a new file transfer to the list of file transfers. Call this only |
| 15884 | 533 | * if you are not using purple_xfer_start. |
|
8585
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
534 | * |
|
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
535 | * @param xfer The file transfer. |
|
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
536 | */ |
| 15884 | 537 | void purple_xfer_add(PurpleXfer *xfer); |
|
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 | /** |
|
4675
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
540 | * Cancels a file transfer on the local end. |
| 4514 | 541 | * |
| 542 | * @param xfer The file transfer. | |
| 543 | */ | |
| 15884 | 544 | void purple_xfer_cancel_local(PurpleXfer *xfer); |
|
4675
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
545 | |
|
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
546 | /** |
|
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
547 | * Cancels a file transfer from the remote end. |
|
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
548 | * |
|
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
549 | * @param xfer The file transfer. |
|
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
550 | */ |
| 15884 | 551 | void purple_xfer_cancel_remote(PurpleXfer *xfer); |
| 4514 | 552 | |
| 553 | /** | |
| 554 | * Displays a file transfer-related error message. | |
| 555 | * | |
| 15884 | 556 | * This is a wrapper around purple_notify_error(), which automatically |
| 10654 | 557 | * specifies a title ("File transfer to <i>user</i> failed" or |
| 558 | * "File Transfer from <i>user</i> failed"). | |
| 4514 | 559 | * |
| 10654 | 560 | * @param type The type of file transfer. |
| 561 | * @param account The account sending or receiving the file. | |
| 562 | * @param who The user on the other end of the transfer. | |
| 563 | * @param msg The message to display. | |
| 4514 | 564 | */ |
| 15884 | 565 | void purple_xfer_error(PurpleXferType type, PurpleAccount *account, const char *who, const char *msg); |
| 4514 | 566 | |
|
8585
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
567 | /** |
|
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
568 | * Updates file transfer progress. |
|
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
569 | * |
|
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
570 | * @param xfer The file transfer. |
|
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
571 | */ |
| 15884 | 572 | void purple_xfer_update_progress(PurpleXfer *xfer); |
|
8585
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
573 | |
|
11084
b6acee973833
[gaim-migrate @ 13103]
Jonathan Clark <ardentlygnarly@users.sourceforge.net>
parents:
10654
diff
changeset
|
574 | /** |
|
b6acee973833
[gaim-migrate @ 13103]
Jonathan Clark <ardentlygnarly@users.sourceforge.net>
parents:
10654
diff
changeset
|
575 | * Displays a file transfer-related message in the conversation window |
|
b6acee973833
[gaim-migrate @ 13103]
Jonathan Clark <ardentlygnarly@users.sourceforge.net>
parents:
10654
diff
changeset
|
576 | * |
| 15884 | 577 | * This is a wrapper around purple_conversation_write |
|
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 | * @param xfer The file transfer to which this message relates. |
|
b6acee973833
[gaim-migrate @ 13103]
Jonathan Clark <ardentlygnarly@users.sourceforge.net>
parents:
10654
diff
changeset
|
580 | * @param message The message to display. |
|
11129
c986d8566843
[gaim-migrate @ 13185]
Mark Doliner <markdoliner@pidgin.im>
parents:
11084
diff
changeset
|
581 | * @param is_error Is this an error message?. |
|
11084
b6acee973833
[gaim-migrate @ 13103]
Jonathan Clark <ardentlygnarly@users.sourceforge.net>
parents:
10654
diff
changeset
|
582 | */ |
| 15884 | 583 | 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
|
584 | |
|
6263
6fec763a314c
[gaim-migrate @ 6760]
Christian Hammond <chipx86@chipx86.com>
parents:
6241
diff
changeset
|
585 | /*@}*/ |
|
6fec763a314c
[gaim-migrate @ 6760]
Christian Hammond <chipx86@chipx86.com>
parents:
6241
diff
changeset
|
586 | |
|
6fec763a314c
[gaim-migrate @ 6760]
Christian Hammond <chipx86@chipx86.com>
parents:
6241
diff
changeset
|
587 | /**************************************************************************/ |
| 4514 | 588 | /** @name UI Registration Functions */ |
| 589 | /**************************************************************************/ | |
| 590 | /*@{*/ | |
| 591 | ||
| 592 | /** | |
|
11281
a5cda37a16be
[gaim-migrate @ 13478]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
593 | * Returns the handle to the file transfer subsystem |
|
a5cda37a16be
[gaim-migrate @ 13478]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
594 | * |
|
a5cda37a16be
[gaim-migrate @ 13478]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
595 | * @return The handle |
|
a5cda37a16be
[gaim-migrate @ 13478]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
596 | */ |
| 15884 | 597 | void *purple_xfers_get_handle(void); |
|
11281
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 | /** |
|
a5cda37a16be
[gaim-migrate @ 13478]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
600 | * Initializes the file transfer subsystem |
|
a5cda37a16be
[gaim-migrate @ 13478]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
601 | */ |
| 15884 | 602 | void purple_xfers_init(void); |
|
11281
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 | /** |
|
a5cda37a16be
[gaim-migrate @ 13478]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
605 | * Uninitializes the file transfer subsystem |
|
a5cda37a16be
[gaim-migrate @ 13478]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
606 | */ |
| 15884 | 607 | void purple_xfers_uninit(void); |
|
11281
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 | /** |
| 15884 | 610 | * Sets the UI operations structure to be used in all purple file transfers. |
| 4514 | 611 | * |
|
6720
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6269
diff
changeset
|
612 | * @param ops The UI operations structure. |
| 4514 | 613 | */ |
| 15884 | 614 | void purple_xfers_set_ui_ops(PurpleXferUiOps *ops); |
| 4514 | 615 | |
| 616 | /** | |
| 15884 | 617 | * Returns the UI operations structure to be used in all purple file transfers. |
| 4514 | 618 | * |
| 619 | * @return The UI operations structure. | |
| 620 | */ | |
| 15884 | 621 | PurpleXferUiOps *purple_xfers_get_ui_ops(void); |
| 4514 | 622 | |
| 623 | /*@}*/ | |
| 624 | ||
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
625 | #ifdef __cplusplus |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
626 | } |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
627 | #endif |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
628 | |
| 15884 | 629 | #endif /* _PURPLE_FT_H_ */ |