1 extern int ftp_debug; 2 3 struct ftp_state* ftp_init(char *name, int autologin, int passive, int debug); 4 void ftp_send(struct ftp_state* s, int argc, ...); 5 int ftp_recv(struct ftp_state* s); 6 void ftp_connect(struct ftp_state* s, char *host, 7 char *user, char *pass, char *dir); 8 int ftp_connected(struct ftp_state *s); 9 void ftp_upload(struct ftp_state* s, char *local, char *remote, char *tmp); 10 void ftp_fini(struct ftp_state *s); 11