comparison src/ft.h @ 4594:a2c95c0d7333

[gaim-migrate @ 4879] I need the ack thing so Gaim will be able to exchange files with MacAIM clizients. I think. The other changes makes gaim call gaim_xfer_end after reading in the # of bytes in the file. Previously it only called gaim_xfer_end when the other end closed the socket. I could write an oscar_xfer_read function that does this, but I would basically be duplicating all of gaim_xfer_read, and I thought this was a little clean. Chipster can lay the smack down on me if this is too ugly. I figured some of this will have to change if multiple files per transfer is ever supported. Gaim doesn't provide support for that [insert "support" related joke here]. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 20 Feb 2003 21:08:46 +0000
parents 05476ef20d58
children 63c022ca157c
comparison
equal deleted inserted replaced
4593:26992c8e8e21 4594:a2c95c0d7333
94 void (*end)(struct gaim_xfer *xfer); 94 void (*end)(struct gaim_xfer *xfer);
95 void (*cancel)(struct gaim_xfer *xfer); 95 void (*cancel)(struct gaim_xfer *xfer);
96 size_t (*read)(char **buffer, struct gaim_xfer *xfer); 96 size_t (*read)(char **buffer, struct gaim_xfer *xfer);
97 size_t (*write)(const char *buffer, size_t size, 97 size_t (*write)(const char *buffer, size_t size,
98 struct gaim_xfer *xfer); 98 struct gaim_xfer *xfer);
99 void (*ack)(struct gaim_xfer *xfer); 99 void (*ack)(struct gaim_xfer *xfer, const char *buffer,
100 size_t size);
100 101
101 } ops; 102 } ops;
102 103
103 struct gaim_xfer_ui_ops *ui_ops; /**< UI-specific operations. */ 104 struct gaim_xfer_ui_ops *ui_ops; /**< UI-specific operations. */
104 void *ui_data; /**< UI-specific data. */ 105 void *ui_data; /**< UI-specific data. */