comparison libpurple/ft.h @ 27881:dad4cb8f81df

Fix building on win32, which has #define write wpurple_write (and similar for read).
author Paul Aurich <paul@darkrain42.org>
date Wed, 12 Aug 2009 07:36:51 +0000
parents b7b25f580637
children 583a2f6ae576 52cb819c6668
comparison
equal deleted inserted replaced
27880:22ae131b8a0c 27881:dad4cb8f81df
87 * 87 *
88 * @return size if the write was successful, or a value between 0 and 88 * @return size if the write was successful, or a value between 0 and
89 * size on error. 89 * size on error.
90 * @since 2.6.0 90 * @since 2.6.0
91 */ 91 */
92 gssize (*write)(PurpleXfer *xfer, const guchar *buffer, gssize size); 92 gssize (*ui_write)(PurpleXfer *xfer, const guchar *buffer, gssize size);
93 93
94 /** 94 /**
95 * UI op to read data to send to the prpl for a file transfer. 95 * UI op to read data to send to the prpl for a file transfer.
96 * 96 *
97 * @param xfer The file transfer structure 97 * @param xfer The file transfer structure
102 * @returns The amount of data in the buffer, 0 if nothing is available, 102 * @returns The amount of data in the buffer, 0 if nothing is available,
103 * and a negative value if an error occurred and the transfer 103 * and a negative value if an error occurred and the transfer
104 * should be cancelled (libpurple will cancel). 104 * should be cancelled (libpurple will cancel).
105 * @since 2.6.0 105 * @since 2.6.0
106 */ 106 */
107 gssize (*read)(PurpleXfer *xfer, guchar **buffer, gssize size); 107 gssize (*ui_read)(PurpleXfer *xfer, guchar **buffer, gssize size);
108 108
109 /** 109 /**
110 * Op to notify the UI that not all the data read in was written. The UI 110 * Op to notify the UI that not all the data read in was written. The UI
111 * should re-enqueue this data and return it the next time read is called. 111 * should re-enqueue this data and return it the next time read is called.
112 * 112 *