38 lines
736 B
C
38 lines
736 B
C
#ifndef _TRANSFER_H
|
|
#define _TRANSFER_H
|
|
|
|
/* $Id$ */
|
|
|
|
typedef enum {FT_UPLOAD, FT_DOWNLOAD, FT_BIDIRECT} TRANSFERTYPE;
|
|
|
|
|
|
/*
|
|
* List of files to download.
|
|
*/
|
|
typedef struct _down_list {
|
|
struct _down_list *next;
|
|
char *local; /* Local filename */
|
|
char *remote; /* Remove filename */
|
|
long cps; /* CPS after sent */
|
|
unsigned kfs : 1; /* Kill File Sent */
|
|
unsigned sent : 1; /* File is Sent */
|
|
} down_list;
|
|
|
|
|
|
/*
|
|
* List of uploaded files.
|
|
*/
|
|
typedef struct _up_list {
|
|
struct _up_list *next;
|
|
char *remote; /* Remote filename */
|
|
char *local; /* Local filename */
|
|
long cps; /* CPS after received */
|
|
unsigned success : 1; /* If received Ok. */
|
|
} up_list;
|
|
|
|
|
|
int transfer(down_list **, up_list **, int);
|
|
|
|
|
|
#endif
|