Changeset 2ff2076 for protocols/ft.h
- Timestamp:
- 2007-12-03T14:28:45Z (17 years ago)
- Branches:
- master
- Children:
- dce3903
- Parents:
- 2c2df7d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/ft.h
r2c2df7d r2ff2076 29 29 typedef enum { 30 30 FT_STATUS_LISTENING = 1, 31 FT_STATUS_TRANSFER ING = 2,31 FT_STATUS_TRANSFERRING = 2, 32 32 FT_STATUS_FINISHED = 4, 33 FT_STATUS_CANCELED = 8 33 FT_STATUS_CANCELED = 8, 34 FT_STATUS_CONNECTING = 16 34 35 } file_status_t; 35 36 … … 61 62 */ 62 63 typedef struct file_transfer { 64 65 /* Are we sending something? */ 66 int sending; 67 63 68 /* 64 69 * The current status of this file transfer. … … 131 136 void (*out_of_data) ( struct file_transfer *file ); 132 137 138 /* 139 * When sending files, protocols register this function to receive data. 140 */ 141 gboolean (*write) (struct file_transfer *file, char *buffer, int len ); 142 133 143 } file_transfer_t; 134 144 … … 151 161 gboolean imcb_file_write( file_transfer_t *file, gpointer data, size_t data_size ); 152 162 163 gboolean imcb_file_recv_start( file_transfer_t *ft ); 153 164 #endif
Note: See TracChangeset
for help on using the changeset viewer.