1 #ifndef __DCC_SEND_H
2 #define __DCC_SEND_H
3 
4 #include "dcc.h"
5 
6 #define DCC_SEND(dcc) \
7 	MODULE_CHECK_CAST_MODULE(dcc, SEND_DCC_REC, type, "DCC", "SEND")
8 
9 #define IS_DCC_SEND(dcc) \
10 	(DCC_SEND(dcc) ? TRUE : FALSE)
11 
12 typedef struct {
13 #include "dcc-file-rec.h"
14 
15 	unsigned int file_quoted:1; /* file name was received quoted ("file name") */
16 
17 	/* fastsending: */
18 	unsigned int waitforend:1; /* file is sent, just wait for the replies from the other side */
19 	unsigned int gotalldata:1; /* got all acks from the other end (needed to make sure the end of transfer works right) */
20 } SEND_DCC_REC;
21 
22 #define DCC_SEND_TYPE module_get_uniq_id_str("DCC", "SEND")
23 
24 void dcc_send_init(void);
25 void dcc_send_deinit(void);
26 
27 #endif
28