Wed, 12 Aug 2009 04:31:17 +0000
ft: Add infrastructure to allow a prpl to moderate when to send packets.
The file transfer subsystem should now allow a prpl to serialize packets
(the way XMPP IBB does, where we wait for an ACK before sending the next
packet.) I think this will also be usable for msn and any other prpls
that currently try to open the local file manually.
| 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 |
|
20889
3d0ef192f98c
All the links to libpurple signal pages were in the comment containing the
Will Thompson <resiak@pidgin.im>
parents:
20147
diff
changeset
|
4 | * @see @ref xfer-signals |
|
20147
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
5 | */ |
|
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
6 | |
|
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
7 | /* purple |
| 4514 | 8 | * |
| 15884 | 9 | * Purple is the legal property of its developers, whose names are too numerous |
| 8046 | 10 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 11 | * source distribution. | |
| 8231 | 12 | * |
| 4514 | 13 | * This program is free software; you can redistribute it and/or modify |
| 14 | * it under the terms of the GNU General Public License as published by | |
| 15 | * the Free Software Foundation; either version 2 of the License, or | |
| 16 | * (at your option) any later version. | |
| 17 | * | |
| 18 | * This program is distributed in the hope that it will be useful, | |
| 19 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 20 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 21 | * GNU General Public License for more details. | |
| 22 | * | |
| 23 | * You should have received a copy of the GNU General Public License | |
| 24 | * along with this program; if not, write to the Free Software | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
17852
diff
changeset
|
25 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 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 | |
|
28150
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
80 | /** |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
81 | * UI op to write data received from the prpl. The UI must deal with the |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
82 | * entire buffer and return size, or it is treated as an error. |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
83 | * |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
84 | * @param xfer The file transfer structure |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
85 | * @param buffer The buffer to write |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
86 | * @param size The size of the buffer |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
87 | * |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
88 | * @return size if the write was successful, or a value between 0 and |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
89 | * size on error. |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
90 | * @since 2.6.0 |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
91 | */ |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
92 | gssize (*write)(PurpleXfer *xfer, const guchar *buffer, gssize size); |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
93 | |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
94 | /** |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
95 | * UI op to read data to send to the prpl for a file transfer. |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
96 | * |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
97 | * @param xfer The file transfer structure |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
98 | * @param buffer A pointer to a buffer. The UI must allocate this buffer. |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
99 | * libpurple will free the data. |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
100 | * @param size The maximum amount of data to put in the buffer. |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
101 | * |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
102 | * @returns The amount of data in the buffer, 0 if nothing is available, |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
103 | * and a negative value if an error occurred and the transfer |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
104 | * should be cancelled (libpurple will cancel). |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
105 | * @since 2.6.0 |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
106 | */ |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
107 | gssize (*read)(PurpleXfer *xfer, guchar **buffer, gssize size); |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
108 | |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
109 | /** |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
110 | * Op to notify the UI that not all the data read in was written. The UI |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
111 | * should re-enqueue this data and return it the next time read is called. |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
112 | * |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
113 | * This MUST be implemented if read and write are implemented. |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
114 | * |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
115 | * @param xfer The file transfer structure |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
116 | * @param buffer A pointer to the beginning of the unwritten data. |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
117 | * @param size The amount of unwritten data. |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
118 | * |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
119 | * @since 2.6.0 |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
120 | */ |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
121 | void (*data_not_sent)(PurpleXfer *xfer, const guchar *buffer, gsize size); |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
122 | |
|
16743
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
123 | void (*_purple_reserved1)(void); |
| 15884 | 124 | } PurpleXferUiOps; |
| 4514 | 125 | |
| 126 | /** | |
| 127 | * A core representation of a file transfer. | |
| 128 | */ | |
| 15884 | 129 | struct _PurpleXfer |
| 4514 | 130 | { |
|
15280
9df6112da532
[gaim-migrate @ 18008]
Mark Doliner <markdoliner@pidgin.im>
parents:
15000
diff
changeset
|
131 | guint ref; /**< The reference count. */ |
| 15884 | 132 | PurpleXferType type; /**< The type of transfer. */ |
| 4514 | 133 | |
| 15884 | 134 | PurpleAccount *account; /**< The account. */ |
| 4514 | 135 | |
| 136 | char *who; /**< The person on the other end of the | |
| 137 | transfer. */ | |
| 138 | ||
|
9933
61bd3fadbfe6
[gaim-migrate @ 10825]
Dave West <kat@users.sourceforge.net>
parents:
9511
diff
changeset
|
139 | char *message; /**< A message sent with the request */ |
|
4605
67526771e679
[gaim-migrate @ 4892]
Mark Doliner <markdoliner@pidgin.im>
parents:
4595
diff
changeset
|
140 | char *filename; /**< The name sent over the network. */ |
|
67526771e679
[gaim-migrate @ 4892]
Mark Doliner <markdoliner@pidgin.im>
parents:
4595
diff
changeset
|
141 | char *local_filename; /**< The name on the local hard drive. */ |
| 4514 | 142 | size_t size; /**< The size of the file. */ |
| 143 | ||
| 144 | FILE *dest_fp; /**< The destination file pointer. */ | |
| 145 | ||
| 146 | char *remote_ip; /**< The remote IP address. */ | |
| 147 | int local_port; /**< The local port. */ | |
| 148 | int remote_port; /**< The remote port. */ | |
| 149 | ||
| 150 | int fd; /**< The socket file descriptor. */ | |
| 151 | int watcher; /**< Watcher. */ | |
| 152 | ||
| 153 | size_t bytes_sent; /**< The number of bytes sent. */ | |
| 154 | size_t bytes_remaining; /**< The number of bytes remaining. */ | |
|
13599
b6369e541654
[gaim-migrate @ 15984]
Mark Doliner <markdoliner@pidgin.im>
parents:
13009
diff
changeset
|
155 | time_t start_time; /**< When the transfer of data began. */ |
|
b6369e541654
[gaim-migrate @ 15984]
Mark Doliner <markdoliner@pidgin.im>
parents:
13009
diff
changeset
|
156 | time_t end_time; /**< When the transfer of data ended. */ |
| 4514 | 157 | |
|
15280
9df6112da532
[gaim-migrate @ 18008]
Mark Doliner <markdoliner@pidgin.im>
parents:
15000
diff
changeset
|
158 | size_t current_buffer_size; /**< This gradually increases for fast |
|
9df6112da532
[gaim-migrate @ 18008]
Mark Doliner <markdoliner@pidgin.im>
parents:
15000
diff
changeset
|
159 | network connections. */ |
|
9df6112da532
[gaim-migrate @ 18008]
Mark Doliner <markdoliner@pidgin.im>
parents:
15000
diff
changeset
|
160 | |
| 15884 | 161 | PurpleXferStatusType status; /**< File Transfer's status. */ |
| 4538 | 162 | |
| 4514 | 163 | /* I/O operations. */ |
| 164 | struct | |
| 165 | { | |
| 15884 | 166 | void (*init)(PurpleXfer *xfer); |
| 167 | void (*request_denied)(PurpleXfer *xfer); | |
| 168 | void (*start)(PurpleXfer *xfer); | |
| 169 | void (*end)(PurpleXfer *xfer); | |
| 170 | void (*cancel_send)(PurpleXfer *xfer); | |
| 171 | void (*cancel_recv)(PurpleXfer *xfer); | |
| 172 | gssize (*read)(guchar **buffer, PurpleXfer *xfer); | |
| 173 | gssize (*write)(const guchar *buffer, size_t size, PurpleXfer *xfer); | |
| 174 | void (*ack)(PurpleXfer *xfer, const guchar *buffer, size_t size); | |
| 4514 | 175 | } ops; |
| 176 | ||
| 15884 | 177 | PurpleXferUiOps *ui_ops; /**< UI-specific operations. */ |
| 4514 | 178 | void *ui_data; /**< UI-specific data. */ |
| 179 | ||
| 180 | void *data; /**< prpl-specific data. */ | |
| 181 | }; | |
| 182 | ||
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
183 | #ifdef __cplusplus |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
184 | extern "C" { |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
185 | #endif |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
186 | |
| 4514 | 187 | /**************************************************************************/ |
| 188 | /** @name File Transfer API */ | |
| 189 | /**************************************************************************/ | |
| 190 | /*@{*/ | |
| 191 | ||
| 192 | /** | |
| 193 | * Creates a new file transfer handle. | |
| 7805 | 194 | * This is called by prpls. |
| 195 | * The handle starts with a ref count of 1, and this reference | |
| 196 | * is owned by the core. The prpl normally does not need to | |
| 15884 | 197 | * purple_xfer_ref or unref. |
| 4514 | 198 | * |
| 199 | * @param account The account sending or receiving the file. | |
| 200 | * @param type The type of file transfer. | |
| 201 | * @param who The name of the remote user. | |
| 202 | * | |
| 203 | * @return A file transfer handle. | |
| 204 | */ | |
| 15884 | 205 | PurpleXfer *purple_xfer_new(PurpleAccount *account, |
| 206 | PurpleXferType type, const char *who); | |
| 4514 | 207 | |
| 208 | /** | |
|
15702
111fdd9108cc
Patch from Richard 'wabz' Nelson to add file-transfer ui. Amazing stuff\!
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15435
diff
changeset
|
209 | * 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
|
210 | * |
|
111fdd9108cc
Patch from Richard 'wabz' Nelson to add file-transfer ui. Amazing stuff\!
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15435
diff
changeset
|
211 | * @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
|
212 | */ |
| 15884 | 213 | 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
|
214 | |
|
111fdd9108cc
Patch from Richard 'wabz' Nelson to add file-transfer ui. Amazing stuff\!
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15435
diff
changeset
|
215 | /** |
| 15884 | 216 | * Increases the reference count on a PurpleXfer. |
| 217 | * Please call purple_xfer_unref later. | |
| 4514 | 218 | * |
| 7805 | 219 | * @param xfer A file transfer handle. |
| 4514 | 220 | */ |
| 15884 | 221 | void purple_xfer_ref(PurpleXfer *xfer); |
| 7805 | 222 | |
| 223 | /** | |
| 15884 | 224 | * Decreases the reference count on a PurpleXfer. |
| 225 | * If the reference reaches 0, purple_xfer_destroy (an internal function) | |
| 7805 | 226 | * 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
|
227 | * Since the core keeps a ref on the xfer, only an erroneous call to |
| 7805 | 228 | * this function will destroy the xfer while still in use. |
| 229 | * | |
| 230 | * @param xfer A file transfer handle. | |
| 231 | */ | |
| 15884 | 232 | void purple_xfer_unref(PurpleXfer *xfer); |
| 4514 | 233 | |
| 234 | /** | |
|
8585
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
235 | * Requests confirmation for a file transfer from the user. If receiving |
|
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
236 | * 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
|
237 | * 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
|
238 | * 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
|
239 | * again once the filename is available. |
| 4514 | 240 | * |
| 241 | * @param xfer The file transfer to request confirmation on. | |
| 242 | */ | |
| 15884 | 243 | void purple_xfer_request(PurpleXfer *xfer); |
| 4514 | 244 | |
| 245 | /** | |
| 246 | * Called if the user accepts the file transfer request. | |
| 247 | * | |
| 248 | * @param xfer The file transfer. | |
| 249 | * @param filename The filename. | |
| 250 | */ | |
| 15884 | 251 | void purple_xfer_request_accepted(PurpleXfer *xfer, const char *filename); |
| 4514 | 252 | |
| 253 | /** | |
| 254 | * Called if the user rejects the file transfer request. | |
| 255 | * | |
| 256 | * @param xfer The file transfer. | |
| 257 | */ | |
| 15884 | 258 | void purple_xfer_request_denied(PurpleXfer *xfer); |
| 4514 | 259 | |
| 260 | /** | |
| 261 | * Returns the type of file transfer. | |
| 262 | * | |
| 263 | * @param xfer The file transfer. | |
| 264 | * | |
| 265 | * @return The type of the file transfer. | |
| 266 | */ | |
| 15884 | 267 | PurpleXferType purple_xfer_get_type(const PurpleXfer *xfer); |
| 4514 | 268 | |
| 269 | /** | |
| 270 | * Returns the account the file transfer is using. | |
| 271 | * | |
| 272 | * @param xfer The file transfer. | |
| 273 | * | |
| 274 | * @return The account. | |
| 275 | */ | |
| 15884 | 276 | PurpleAccount *purple_xfer_get_account(const PurpleXfer *xfer); |
| 4514 | 277 | |
| 278 | /** | |
|
17852
174c0d122a79
Add new function purple_xfer_get_remote_user.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16743
diff
changeset
|
279 | * Returns the name of the remote user. |
|
174c0d122a79
Add new function purple_xfer_get_remote_user.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16743
diff
changeset
|
280 | * |
|
174c0d122a79
Add new function purple_xfer_get_remote_user.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16743
diff
changeset
|
281 | * @param xfer The file transfer. |
|
174c0d122a79
Add new function purple_xfer_get_remote_user.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16743
diff
changeset
|
282 | * |
|
174c0d122a79
Add new function purple_xfer_get_remote_user.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16743
diff
changeset
|
283 | * @return The name of the remote user. |
|
20940
925d3d68b3af
Doxygen @since tags for libpurple and pidgin.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20889
diff
changeset
|
284 | * |
|
925d3d68b3af
Doxygen @since tags for libpurple and pidgin.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20889
diff
changeset
|
285 | * @since 2.1.0 |
|
17852
174c0d122a79
Add new function purple_xfer_get_remote_user.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16743
diff
changeset
|
286 | */ |
|
174c0d122a79
Add new function purple_xfer_get_remote_user.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16743
diff
changeset
|
287 | const char *purple_xfer_get_remote_user(const PurpleXfer *xfer); |
|
174c0d122a79
Add new function purple_xfer_get_remote_user.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16743
diff
changeset
|
288 | |
|
174c0d122a79
Add new function purple_xfer_get_remote_user.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16743
diff
changeset
|
289 | /** |
| 7805 | 290 | * Returns the status of the xfer. |
| 291 | * | |
| 292 | * @param xfer The file transfer. | |
| 293 | * | |
| 294 | * @return The status. | |
| 295 | */ | |
| 15884 | 296 | PurpleXferStatusType purple_xfer_get_status(const PurpleXfer *xfer); |
| 7805 | 297 | |
| 298 | /** | |
| 7738 | 299 | * Returns true if the file transfer was canceled. |
| 300 | * | |
| 301 | * @param xfer The file transfer. | |
| 302 | * | |
| 303 | * @return Whether or not the transfer was canceled. | |
| 304 | */ | |
| 15884 | 305 | gboolean purple_xfer_is_canceled(const PurpleXfer *xfer); |
| 7738 | 306 | |
| 307 | /** | |
|
4539
44671e1ce14e
[gaim-migrate @ 4818]
Christian Hammond <chipx86@chipx86.com>
parents:
4538
diff
changeset
|
308 | * Returns the completed state for a file transfer. |
|
44671e1ce14e
[gaim-migrate @ 4818]
Christian Hammond <chipx86@chipx86.com>
parents:
4538
diff
changeset
|
309 | * |
|
44671e1ce14e
[gaim-migrate @ 4818]
Christian Hammond <chipx86@chipx86.com>
parents:
4538
diff
changeset
|
310 | * @param xfer The file transfer. |
|
44671e1ce14e
[gaim-migrate @ 4818]
Christian Hammond <chipx86@chipx86.com>
parents:
4538
diff
changeset
|
311 | * |
|
44671e1ce14e
[gaim-migrate @ 4818]
Christian Hammond <chipx86@chipx86.com>
parents:
4538
diff
changeset
|
312 | * @return The completed state. |
|
44671e1ce14e
[gaim-migrate @ 4818]
Christian Hammond <chipx86@chipx86.com>
parents:
4538
diff
changeset
|
313 | */ |
| 15884 | 314 | gboolean purple_xfer_is_completed(const PurpleXfer *xfer); |
|
4539
44671e1ce14e
[gaim-migrate @ 4818]
Christian Hammond <chipx86@chipx86.com>
parents:
4538
diff
changeset
|
315 | |
|
44671e1ce14e
[gaim-migrate @ 4818]
Christian Hammond <chipx86@chipx86.com>
parents:
4538
diff
changeset
|
316 | /** |
| 4514 | 317 | * Returns the name of the file being sent or received. |
| 318 | * | |
| 319 | * @param xfer The file transfer. | |
| 320 | * | |
| 321 | * @return The filename. | |
| 322 | */ | |
| 15884 | 323 | const char *purple_xfer_get_filename(const PurpleXfer *xfer); |
| 4514 | 324 | |
| 325 | /** | |
| 326 | * Returns the file's destination filename, | |
| 327 | * | |
| 328 | * @param xfer The file transfer. | |
| 329 | * | |
| 330 | * @return The destination filename. | |
| 331 | */ | |
| 15884 | 332 | const char *purple_xfer_get_local_filename(const PurpleXfer *xfer); |
| 4514 | 333 | |
| 334 | /** | |
|
13009
12ef9f229961
[gaim-migrate @ 15362]
Daniel Atallah <datallah@pidgin.im>
parents:
12151
diff
changeset
|
335 | * Returns the number of bytes sent (or received) so far. |
| 4514 | 336 | * |
| 337 | * @param xfer The file transfer. | |
| 338 | * | |
| 339 | * @return The number of bytes sent. | |
| 340 | */ | |
| 15884 | 341 | size_t purple_xfer_get_bytes_sent(const PurpleXfer *xfer); |
| 4514 | 342 | |
| 343 | /** | |
|
13009
12ef9f229961
[gaim-migrate @ 15362]
Daniel Atallah <datallah@pidgin.im>
parents:
12151
diff
changeset
|
344 | * Returns the number of bytes remaining to send or receive. |
| 4514 | 345 | * |
| 346 | * @param xfer The file transfer. | |
| 347 | * | |
|
13009
12ef9f229961
[gaim-migrate @ 15362]
Daniel Atallah <datallah@pidgin.im>
parents:
12151
diff
changeset
|
348 | * @return The number of bytes remaining. |
| 4514 | 349 | */ |
| 15884 | 350 | size_t purple_xfer_get_bytes_remaining(const PurpleXfer *xfer); |
| 4514 | 351 | |
| 352 | /** | |
| 353 | * Returns the size of the file being sent or received. | |
| 354 | * | |
| 355 | * @param xfer The file transfer. | |
| 7805 | 356 | * |
| 4514 | 357 | * @return The total size of the file. |
| 358 | */ | |
| 15884 | 359 | size_t purple_xfer_get_size(const PurpleXfer *xfer); |
| 4514 | 360 | |
| 361 | /** | |
| 362 | * Returns the current percentage of progress of the transfer. | |
| 363 | * | |
| 364 | * This is a number between 0 (0%) and 1 (100%). | |
| 365 | * | |
| 366 | * @param xfer The file transfer. | |
| 367 | * | |
| 368 | * @return The percentage complete. | |
| 369 | */ | |
| 15884 | 370 | double purple_xfer_get_progress(const PurpleXfer *xfer); |
| 4514 | 371 | |
| 372 | /** | |
| 373 | * Returns the local port number in the file transfer. | |
| 374 | * | |
| 375 | * @param xfer The file transfer. | |
| 376 | * | |
| 377 | * @return The port number on this end. | |
| 378 | */ | |
| 15884 | 379 | unsigned int purple_xfer_get_local_port(const PurpleXfer *xfer); |
| 4514 | 380 | |
| 381 | /** | |
| 382 | * Returns the remote IP address in the file transfer. | |
| 383 | * | |
| 384 | * @param xfer The file transfer. | |
| 385 | * | |
| 386 | * @return The IP address on the other end. | |
| 387 | */ | |
| 15884 | 388 | const char *purple_xfer_get_remote_ip(const PurpleXfer *xfer); |
| 4514 | 389 | |
| 390 | /** | |
| 391 | * Returns the remote port number in the file transfer. | |
| 392 | * | |
| 393 | * @param xfer The file transfer. | |
| 394 | * | |
| 395 | * @return The port number on the other end. | |
| 396 | */ | |
| 15884 | 397 | unsigned int purple_xfer_get_remote_port(const PurpleXfer *xfer); |
| 4514 | 398 | |
| 399 | /** | |
|
22338
d6a489105624
Add accessor and update finch to not touch the internals of PurpleXfer.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20940
diff
changeset
|
400 | * Returns the time the transfer of a file started. |
|
d6a489105624
Add accessor and update finch to not touch the internals of PurpleXfer.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20940
diff
changeset
|
401 | * |
|
d6a489105624
Add accessor and update finch to not touch the internals of PurpleXfer.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20940
diff
changeset
|
402 | * @param xfer The file transfer. |
|
d6a489105624
Add accessor and update finch to not touch the internals of PurpleXfer.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20940
diff
changeset
|
403 | * |
|
d6a489105624
Add accessor and update finch to not touch the internals of PurpleXfer.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20940
diff
changeset
|
404 | * @return The time when the transfer started. |
|
d6a489105624
Add accessor and update finch to not touch the internals of PurpleXfer.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20940
diff
changeset
|
405 | * @since 2.4.0 |
|
d6a489105624
Add accessor and update finch to not touch the internals of PurpleXfer.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20940
diff
changeset
|
406 | */ |
|
d6a489105624
Add accessor and update finch to not touch the internals of PurpleXfer.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20940
diff
changeset
|
407 | time_t purple_xfer_get_start_time(const PurpleXfer *xfer); |
|
d6a489105624
Add accessor and update finch to not touch the internals of PurpleXfer.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20940
diff
changeset
|
408 | |
|
d6a489105624
Add accessor and update finch to not touch the internals of PurpleXfer.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20940
diff
changeset
|
409 | /** |
|
d6a489105624
Add accessor and update finch to not touch the internals of PurpleXfer.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20940
diff
changeset
|
410 | * Returns the time the transfer of a file ended. |
|
d6a489105624
Add accessor and update finch to not touch the internals of PurpleXfer.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20940
diff
changeset
|
411 | * |
|
d6a489105624
Add accessor and update finch to not touch the internals of PurpleXfer.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20940
diff
changeset
|
412 | * @param xfer The file transfer. |
|
d6a489105624
Add accessor and update finch to not touch the internals of PurpleXfer.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20940
diff
changeset
|
413 | * |
|
d6a489105624
Add accessor and update finch to not touch the internals of PurpleXfer.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20940
diff
changeset
|
414 | * @return The time when the transfer ended. |
|
d6a489105624
Add accessor and update finch to not touch the internals of PurpleXfer.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20940
diff
changeset
|
415 | * @since 2.4.0 |
|
d6a489105624
Add accessor and update finch to not touch the internals of PurpleXfer.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20940
diff
changeset
|
416 | */ |
|
d6a489105624
Add accessor and update finch to not touch the internals of PurpleXfer.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20940
diff
changeset
|
417 | time_t purple_xfer_get_end_time(const PurpleXfer *xfer); |
|
d6a489105624
Add accessor and update finch to not touch the internals of PurpleXfer.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20940
diff
changeset
|
418 | |
|
d6a489105624
Add accessor and update finch to not touch the internals of PurpleXfer.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20940
diff
changeset
|
419 | /** |
| 4538 | 420 | * Sets the completed state for the file transfer. |
| 421 | * | |
| 422 | * @param xfer The file transfer. | |
| 423 | * @param completed The completed state. | |
| 424 | */ | |
| 15884 | 425 | void purple_xfer_set_completed(PurpleXfer *xfer, gboolean completed); |
| 4538 | 426 | |
| 427 | /** | |
| 4514 | 428 | * Sets the filename for the file transfer. |
| 429 | * | |
| 430 | * @param xfer The file transfer. | |
|
9933
61bd3fadbfe6
[gaim-migrate @ 10825]
Dave West <kat@users.sourceforge.net>
parents:
9511
diff
changeset
|
431 | * @param message The message. |
|
61bd3fadbfe6
[gaim-migrate @ 10825]
Dave West <kat@users.sourceforge.net>
parents:
9511
diff
changeset
|
432 | */ |
| 15884 | 433 | 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
|
434 | |
|
61bd3fadbfe6
[gaim-migrate @ 10825]
Dave West <kat@users.sourceforge.net>
parents:
9511
diff
changeset
|
435 | /** |
|
61bd3fadbfe6
[gaim-migrate @ 10825]
Dave West <kat@users.sourceforge.net>
parents:
9511
diff
changeset
|
436 | * Sets the filename for the file transfer. |
|
61bd3fadbfe6
[gaim-migrate @ 10825]
Dave West <kat@users.sourceforge.net>
parents:
9511
diff
changeset
|
437 | * |
|
61bd3fadbfe6
[gaim-migrate @ 10825]
Dave West <kat@users.sourceforge.net>
parents:
9511
diff
changeset
|
438 | * @param xfer The file transfer. |
| 4514 | 439 | * @param filename The filename. |
| 440 | */ | |
| 15884 | 441 | void purple_xfer_set_filename(PurpleXfer *xfer, const char *filename); |
| 4514 | 442 | |
| 443 | /** | |
|
4605
67526771e679
[gaim-migrate @ 4892]
Mark Doliner <markdoliner@pidgin.im>
parents:
4595
diff
changeset
|
444 | * Sets the local filename for the file transfer. |
| 4514 | 445 | * |
| 446 | * @param xfer The file transfer. | |
| 447 | * @param filename The filename | |
| 448 | */ | |
| 15884 | 449 | void purple_xfer_set_local_filename(PurpleXfer *xfer, const char *filename); |
| 4514 | 450 | |
| 451 | /** | |
| 452 | * Sets the size of the file in a file transfer. | |
| 453 | * | |
| 454 | * @param xfer The file transfer. | |
| 455 | * @param size The size of the file. | |
| 456 | */ | |
| 15884 | 457 | void purple_xfer_set_size(PurpleXfer *xfer, size_t size); |
| 4514 | 458 | |
| 459 | /** | |
|
15322
cd268e368bc1
[gaim-migrate @ 18050]
Mark Doliner <markdoliner@pidgin.im>
parents:
15280
diff
changeset
|
460 | * Sets the current working position in the active file transfer. This |
|
cd268e368bc1
[gaim-migrate @ 18050]
Mark Doliner <markdoliner@pidgin.im>
parents:
15280
diff
changeset
|
461 | * 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
|
462 | * 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
|
463 | * |
|
cd268e368bc1
[gaim-migrate @ 18050]
Mark Doliner <markdoliner@pidgin.im>
parents:
15280
diff
changeset
|
464 | * It's used for pausing and resuming an oscar file transfer. |
|
cd268e368bc1
[gaim-migrate @ 18050]
Mark Doliner <markdoliner@pidgin.im>
parents:
15280
diff
changeset
|
465 | * |
|
cd268e368bc1
[gaim-migrate @ 18050]
Mark Doliner <markdoliner@pidgin.im>
parents:
15280
diff
changeset
|
466 | * @param xfer The file transfer. |
|
cd268e368bc1
[gaim-migrate @ 18050]
Mark Doliner <markdoliner@pidgin.im>
parents:
15280
diff
changeset
|
467 | * @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
|
468 | * sending a file then this is the byte that we will |
|
cd268e368bc1
[gaim-migrate @ 18050]
Mark Doliner <markdoliner@pidgin.im>
parents:
15280
diff
changeset
|
469 | * send. If we're receiving a file, this is the |
|
cd268e368bc1
[gaim-migrate @ 18050]
Mark Doliner <markdoliner@pidgin.im>
parents:
15280
diff
changeset
|
470 | * next byte that we expect to receive. |
|
cd268e368bc1
[gaim-migrate @ 18050]
Mark Doliner <markdoliner@pidgin.im>
parents:
15280
diff
changeset
|
471 | */ |
| 15884 | 472 | 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
|
473 | |
|
cd268e368bc1
[gaim-migrate @ 18050]
Mark Doliner <markdoliner@pidgin.im>
parents:
15280
diff
changeset
|
474 | /** |
| 4514 | 475 | * Returns the UI operations structure for a file transfer. |
| 476 | * | |
| 477 | * @param xfer The file transfer. | |
| 478 | * | |
| 479 | * @return The UI operations structure. | |
| 480 | */ | |
| 15884 | 481 | PurpleXferUiOps *purple_xfer_get_ui_ops(const PurpleXfer *xfer); |
| 4514 | 482 | |
| 483 | /** | |
| 484 | * Sets the read function for the file transfer. | |
| 485 | * | |
| 486 | * @param xfer The file transfer. | |
| 487 | * @param fnc The read function. | |
| 488 | */ | |
| 15884 | 489 | void purple_xfer_set_read_fnc(PurpleXfer *xfer, |
| 490 | gssize (*fnc)(guchar **, PurpleXfer *)); | |
| 4514 | 491 | |
| 492 | /** | |
| 493 | * Sets the write function for the file transfer. | |
| 494 | * | |
| 495 | * @param xfer The file transfer. | |
| 496 | * @param fnc The write function. | |
| 497 | */ | |
| 15884 | 498 | void purple_xfer_set_write_fnc(PurpleXfer *xfer, |
| 499 | gssize (*fnc)(const guchar *, size_t, PurpleXfer *)); | |
| 4514 | 500 | |
| 501 | /** | |
| 502 | * Sets the acknowledge function for the file transfer. | |
| 503 | * | |
| 504 | * @param xfer The file transfer. | |
| 505 | * @param fnc The acknowledge function. | |
| 506 | */ | |
| 15884 | 507 | void purple_xfer_set_ack_fnc(PurpleXfer *xfer, |
| 508 | void (*fnc)(PurpleXfer *, const guchar *, size_t)); | |
| 4514 | 509 | |
| 510 | /** | |
| 7805 | 511 | * Sets the function to be called if the request is denied. |
| 512 | * | |
| 513 | * @param xfer The file transfer. | |
| 514 | * @param fnc The request denied prpl callback. | |
| 515 | */ | |
| 15884 | 516 | void purple_xfer_set_request_denied_fnc(PurpleXfer *xfer, void (*fnc)(PurpleXfer *)); |
| 7805 | 517 | |
| 518 | /** | |
| 4514 | 519 | * Sets the transfer initialization function for the file transfer. |
| 520 | * | |
| 15884 | 521 | * This function is required, and must call purple_xfer_start() with |
| 4514 | 522 | * the necessary parameters. This will be called if the file transfer |
| 523 | * is accepted by the user. | |
| 524 | * | |
| 525 | * @param xfer The file transfer. | |
| 526 | * @param fnc The transfer initialization function. | |
| 527 | */ | |
| 15884 | 528 | void purple_xfer_set_init_fnc(PurpleXfer *xfer, void (*fnc)(PurpleXfer *)); |
| 4514 | 529 | |
| 530 | /** | |
| 531 | * Sets the start transfer function for the file transfer. | |
| 532 | * | |
| 533 | * @param xfer The file transfer. | |
| 534 | * @param fnc The start transfer function. | |
| 535 | */ | |
| 15884 | 536 | void purple_xfer_set_start_fnc(PurpleXfer *xfer, void (*fnc)(PurpleXfer *)); |
| 4514 | 537 | |
| 538 | /** | |
| 539 | * Sets the end transfer function for the file transfer. | |
| 540 | * | |
| 541 | * @param xfer The file transfer. | |
| 542 | * @param fnc The end transfer function. | |
| 543 | */ | |
| 15884 | 544 | void purple_xfer_set_end_fnc(PurpleXfer *xfer, void (*fnc)(PurpleXfer *)); |
| 4514 | 545 | |
| 546 | /** | |
|
4675
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
547 | * Sets the cancel send function for the file transfer. |
| 4514 | 548 | * |
| 549 | * @param xfer The file transfer. | |
|
4675
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
550 | * @param fnc The cancel send function. |
| 4514 | 551 | */ |
| 15884 | 552 | 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
|
553 | |
|
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
554 | /** |
|
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
555 | * Sets the cancel receive function for the file transfer. |
|
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
556 | * |
|
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
557 | * @param xfer The file transfer. |
|
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
558 | * @param fnc The cancel receive function. |
|
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
559 | */ |
| 15884 | 560 | void purple_xfer_set_cancel_recv_fnc(PurpleXfer *xfer, void (*fnc)(PurpleXfer *)); |
| 4514 | 561 | |
| 562 | /** | |
| 563 | * Reads in data from a file transfer stream. | |
| 564 | * | |
| 565 | * @param xfer The file transfer. | |
| 566 | * @param buffer The buffer that will be created to contain the data. | |
| 567 | * | |
| 8231 | 568 | * @return The number of bytes read, or -1. |
| 4514 | 569 | */ |
| 15884 | 570 | gssize purple_xfer_read(PurpleXfer *xfer, guchar **buffer); |
| 4514 | 571 | |
| 572 | /** | |
| 573 | * Writes data to a file transfer stream. | |
| 574 | * | |
| 575 | * @param xfer The file transfer. | |
| 576 | * @param buffer The buffer to read the data from. | |
| 577 | * @param size The number of bytes to write. | |
| 578 | * | |
| 8231 | 579 | * @return The number of bytes written, or -1. |
| 4514 | 580 | */ |
| 15884 | 581 | gssize purple_xfer_write(PurpleXfer *xfer, const guchar *buffer, gsize size); |
| 4514 | 582 | |
| 583 | /** | |
| 584 | * Starts a file transfer. | |
| 585 | * | |
| 586 | * Either @a fd must be specified <i>or</i> @a ip and @a port on a | |
| 587 | * file receive transfer. On send, @a fd must be specified, and | |
| 588 | * @a ip and @a port are ignored. | |
| 589 | * | |
|
28152
e9800c07eb5b
ft: Fix a bunch of uses of 0 as an 'invalid' fd.
Paul Aurich <darkrain42@pidgin.im>
parents:
28150
diff
changeset
|
590 | * Prior to libpurple 2.6.0, passing '0' to @a fd was special-cased to |
|
e9800c07eb5b
ft: Fix a bunch of uses of 0 as an 'invalid' fd.
Paul Aurich <darkrain42@pidgin.im>
parents:
28150
diff
changeset
|
591 | * allow the protocol plugin to facilitate the file transfer itself. As of |
|
e9800c07eb5b
ft: Fix a bunch of uses of 0 as an 'invalid' fd.
Paul Aurich <darkrain42@pidgin.im>
parents:
28150
diff
changeset
|
592 | * 2.6.0, this is supported (for backward compatibility), but will be |
|
e9800c07eb5b
ft: Fix a bunch of uses of 0 as an 'invalid' fd.
Paul Aurich <darkrain42@pidgin.im>
parents:
28150
diff
changeset
|
593 | * removed in libpurple 3.0.0. If a prpl detects that the running libpurple |
|
e9800c07eb5b
ft: Fix a bunch of uses of 0 as an 'invalid' fd.
Paul Aurich <darkrain42@pidgin.im>
parents:
28150
diff
changeset
|
594 | * is running 2.6.0 or higher, it should use the invalid fd '-1'. |
|
e9800c07eb5b
ft: Fix a bunch of uses of 0 as an 'invalid' fd.
Paul Aurich <darkrain42@pidgin.im>
parents:
28150
diff
changeset
|
595 | * |
| 4514 | 596 | * @param xfer The file transfer. |
| 597 | * @param fd The file descriptor for the socket. | |
| 598 | * @param ip The IP address to connect to. | |
| 599 | * @param port The port to connect to. | |
| 600 | */ | |
| 15884 | 601 | void purple_xfer_start(PurpleXfer *xfer, int fd, const char *ip, |
| 4514 | 602 | unsigned int port); |
| 603 | ||
| 604 | /** | |
| 605 | * Ends a file transfer. | |
| 606 | * | |
| 607 | * @param xfer The file transfer. | |
| 608 | */ | |
| 15884 | 609 | void purple_xfer_end(PurpleXfer *xfer); |
| 4514 | 610 | |
| 611 | /** | |
|
8585
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
612 | * Adds a new file transfer to the list of file transfers. Call this only |
| 15884 | 613 | * if you are not using purple_xfer_start. |
|
8585
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
614 | * |
|
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
615 | * @param xfer The file transfer. |
|
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
616 | */ |
| 15884 | 617 | void purple_xfer_add(PurpleXfer *xfer); |
|
8585
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
618 | |
|
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
619 | /** |
|
4675
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
620 | * Cancels a file transfer on the local end. |
| 4514 | 621 | * |
| 622 | * @param xfer The file transfer. | |
| 623 | */ | |
| 15884 | 624 | void purple_xfer_cancel_local(PurpleXfer *xfer); |
|
4675
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
625 | |
|
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
626 | /** |
|
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
627 | * Cancels a file transfer from the remote end. |
|
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
628 | * |
|
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
629 | * @param xfer The file transfer. |
|
8e0a7b537ca2
[gaim-migrate @ 4986]
Christian Hammond <chipx86@chipx86.com>
parents:
4605
diff
changeset
|
630 | */ |
| 15884 | 631 | void purple_xfer_cancel_remote(PurpleXfer *xfer); |
| 4514 | 632 | |
| 633 | /** | |
| 634 | * Displays a file transfer-related error message. | |
| 635 | * | |
| 15884 | 636 | * This is a wrapper around purple_notify_error(), which automatically |
| 10654 | 637 | * specifies a title ("File transfer to <i>user</i> failed" or |
| 638 | * "File Transfer from <i>user</i> failed"). | |
| 4514 | 639 | * |
| 10654 | 640 | * @param type The type of file transfer. |
| 641 | * @param account The account sending or receiving the file. | |
| 642 | * @param who The user on the other end of the transfer. | |
| 643 | * @param msg The message to display. | |
| 4514 | 644 | */ |
| 15884 | 645 | void purple_xfer_error(PurpleXferType type, PurpleAccount *account, const char *who, const char *msg); |
| 4514 | 646 | |
|
8585
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
647 | /** |
|
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
648 | * Updates file transfer progress. |
|
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
649 | * |
|
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
650 | * @param xfer The file transfer. |
|
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
651 | */ |
| 15884 | 652 | void purple_xfer_update_progress(PurpleXfer *xfer); |
|
8585
23db71a2d432
[gaim-migrate @ 9335]
Pekka Riikonen <priikone@silcnet.org>
parents:
8231
diff
changeset
|
653 | |
|
11084
b6acee973833
[gaim-migrate @ 13103]
Jonathan Clark <ardentlygnarly@users.sourceforge.net>
parents:
10654
diff
changeset
|
654 | /** |
|
b6acee973833
[gaim-migrate @ 13103]
Jonathan Clark <ardentlygnarly@users.sourceforge.net>
parents:
10654
diff
changeset
|
655 | * Displays a file transfer-related message in the conversation window |
|
b6acee973833
[gaim-migrate @ 13103]
Jonathan Clark <ardentlygnarly@users.sourceforge.net>
parents:
10654
diff
changeset
|
656 | * |
| 15884 | 657 | * This is a wrapper around purple_conversation_write |
|
11084
b6acee973833
[gaim-migrate @ 13103]
Jonathan Clark <ardentlygnarly@users.sourceforge.net>
parents:
10654
diff
changeset
|
658 | * |
|
b6acee973833
[gaim-migrate @ 13103]
Jonathan Clark <ardentlygnarly@users.sourceforge.net>
parents:
10654
diff
changeset
|
659 | * @param xfer The file transfer to which this message relates. |
|
b6acee973833
[gaim-migrate @ 13103]
Jonathan Clark <ardentlygnarly@users.sourceforge.net>
parents:
10654
diff
changeset
|
660 | * @param message The message to display. |
|
11129
c986d8566843
[gaim-migrate @ 13185]
Mark Doliner <markdoliner@pidgin.im>
parents:
11084
diff
changeset
|
661 | * @param is_error Is this an error message?. |
|
11084
b6acee973833
[gaim-migrate @ 13103]
Jonathan Clark <ardentlygnarly@users.sourceforge.net>
parents:
10654
diff
changeset
|
662 | */ |
| 15884 | 663 | 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
|
664 | |
|
28150
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
665 | /** |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
666 | * Allows the UI to signal it's ready to send/receive data (depending on |
|
28156
0a75e2463576
ft: Add infrastructure to allow a prpl to moderate when to send packets.
Paul Aurich <darkrain42@pidgin.im>
parents:
28152
diff
changeset
|
667 | * the direction of the file transfer. Used when the UI is providing |
|
0a75e2463576
ft: Add infrastructure to allow a prpl to moderate when to send packets.
Paul Aurich <darkrain42@pidgin.im>
parents:
28152
diff
changeset
|
668 | * read/write/data_not_sent UI ops. |
|
28150
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
669 | * |
|
28156
0a75e2463576
ft: Add infrastructure to allow a prpl to moderate when to send packets.
Paul Aurich <darkrain42@pidgin.im>
parents:
28152
diff
changeset
|
670 | * @param xfer The file transfer which is ready. |
|
28150
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
671 | * |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
672 | * @since 2.6.0 |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
673 | */ |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
674 | void purple_xfer_ui_ready(PurpleXfer *xfer); |
|
1213ec1efcf8
ft: Allow the UI to overloadthe use of fread/fwrite. Closes #9844.
Jan Kaluza <hanzz.k@gmail.com>
parents:
22338
diff
changeset
|
675 | |
|
28156
0a75e2463576
ft: Add infrastructure to allow a prpl to moderate when to send packets.
Paul Aurich <darkrain42@pidgin.im>
parents:
28152
diff
changeset
|
676 | /** |
|
0a75e2463576
ft: Add infrastructure to allow a prpl to moderate when to send packets.
Paul Aurich <darkrain42@pidgin.im>
parents:
28152
diff
changeset
|
677 | * Allows the prpl to signal it's readh to send/receive data (depending on |
|
0a75e2463576
ft: Add infrastructure to allow a prpl to moderate when to send packets.
Paul Aurich <darkrain42@pidgin.im>
parents:
28152
diff
changeset
|
678 | * the direction of the file transfer. Used when the prpl provides read/write |
|
0a75e2463576
ft: Add infrastructure to allow a prpl to moderate when to send packets.
Paul Aurich <darkrain42@pidgin.im>
parents:
28152
diff
changeset
|
679 | * ops and cannot/does not provide a raw fd to the core. |
|
0a75e2463576
ft: Add infrastructure to allow a prpl to moderate when to send packets.
Paul Aurich <darkrain42@pidgin.im>
parents:
28152
diff
changeset
|
680 | * |
|
0a75e2463576
ft: Add infrastructure to allow a prpl to moderate when to send packets.
Paul Aurich <darkrain42@pidgin.im>
parents:
28152
diff
changeset
|
681 | * @param xfer The file transfer which is ready. |
|
0a75e2463576
ft: Add infrastructure to allow a prpl to moderate when to send packets.
Paul Aurich <darkrain42@pidgin.im>
parents:
28152
diff
changeset
|
682 | * |
|
0a75e2463576
ft: Add infrastructure to allow a prpl to moderate when to send packets.
Paul Aurich <darkrain42@pidgin.im>
parents:
28152
diff
changeset
|
683 | * @since 2.6.0 |
|
0a75e2463576
ft: Add infrastructure to allow a prpl to moderate when to send packets.
Paul Aurich <darkrain42@pidgin.im>
parents:
28152
diff
changeset
|
684 | */ |
|
0a75e2463576
ft: Add infrastructure to allow a prpl to moderate when to send packets.
Paul Aurich <darkrain42@pidgin.im>
parents:
28152
diff
changeset
|
685 | void purple_xfer_prpl_ready(PurpleXfer *xfer); |
|
0a75e2463576
ft: Add infrastructure to allow a prpl to moderate when to send packets.
Paul Aurich <darkrain42@pidgin.im>
parents:
28152
diff
changeset
|
686 | |
|
6263
6fec763a314c
[gaim-migrate @ 6760]
Christian Hammond <chipx86@chipx86.com>
parents:
6241
diff
changeset
|
687 | /*@}*/ |
|
6fec763a314c
[gaim-migrate @ 6760]
Christian Hammond <chipx86@chipx86.com>
parents:
6241
diff
changeset
|
688 | |
|
6fec763a314c
[gaim-migrate @ 6760]
Christian Hammond <chipx86@chipx86.com>
parents:
6241
diff
changeset
|
689 | /**************************************************************************/ |
| 4514 | 690 | /** @name UI Registration Functions */ |
| 691 | /**************************************************************************/ | |
| 692 | /*@{*/ | |
| 693 | ||
| 694 | /** | |
|
11281
a5cda37a16be
[gaim-migrate @ 13478]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
695 | * Returns the handle to the file transfer subsystem |
|
a5cda37a16be
[gaim-migrate @ 13478]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
696 | * |
|
a5cda37a16be
[gaim-migrate @ 13478]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
697 | * @return The handle |
|
a5cda37a16be
[gaim-migrate @ 13478]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
698 | */ |
| 15884 | 699 | void *purple_xfers_get_handle(void); |
|
11281
a5cda37a16be
[gaim-migrate @ 13478]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
700 | |
|
a5cda37a16be
[gaim-migrate @ 13478]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
701 | /** |
|
a5cda37a16be
[gaim-migrate @ 13478]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
702 | * Initializes the file transfer subsystem |
|
a5cda37a16be
[gaim-migrate @ 13478]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
703 | */ |
| 15884 | 704 | void purple_xfers_init(void); |
|
11281
a5cda37a16be
[gaim-migrate @ 13478]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
705 | |
|
a5cda37a16be
[gaim-migrate @ 13478]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
706 | /** |
|
a5cda37a16be
[gaim-migrate @ 13478]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
707 | * Uninitializes the file transfer subsystem |
|
a5cda37a16be
[gaim-migrate @ 13478]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
708 | */ |
| 15884 | 709 | void purple_xfers_uninit(void); |
|
11281
a5cda37a16be
[gaim-migrate @ 13478]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
710 | |
|
a5cda37a16be
[gaim-migrate @ 13478]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11159
diff
changeset
|
711 | /** |
| 15884 | 712 | * Sets the UI operations structure to be used in all purple file transfers. |
| 4514 | 713 | * |
|
6720
cdc5348dd848
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6269
diff
changeset
|
714 | * @param ops The UI operations structure. |
| 4514 | 715 | */ |
| 15884 | 716 | void purple_xfers_set_ui_ops(PurpleXferUiOps *ops); |
| 4514 | 717 | |
| 718 | /** | |
| 15884 | 719 | * Returns the UI operations structure to be used in all purple file transfers. |
| 4514 | 720 | * |
| 721 | * @return The UI operations structure. | |
| 722 | */ | |
| 15884 | 723 | PurpleXferUiOps *purple_xfers_get_ui_ops(void); |
| 4514 | 724 | |
| 725 | /*@}*/ | |
| 726 | ||
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
727 | #ifdef __cplusplus |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
728 | } |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
729 | #endif |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
730 | |
| 15884 | 731 | #endif /* _PURPLE_FT_H_ */ |