freebsd-dev/usr.sbin/pkg_install/lib/ftp.h
Jordan K. Hubbard 4366f12ca2 Totally eliminate the dependency on libftp (which will be removed from the
FreeBSD source tree) and switch to the internal ftp routines developed
by Poul-Henning and used in sysinstall.
1995-07-30 09:33:31 +00:00

30 lines
665 B
C

#ifndef _FTP_H_INCLUDE
#define _FTP_H_INCLUDE
typedef struct {
enum {init, isopen, xfer} state;
int fd_ctrl;
int fd_xfer;
int fd_debug;
int binary;
int passive;
int addrtype;
char *host;
char *file;
} *FTP_t;
FTP_t FtpInit();
int FtpOpen(FTP_t, char *host, char *user, char *passwd);
#define FtpBinary(ftp,bool) { (ftp)->binary = (bool); }
#define FtpPassive(ftp,bool) { (ftp)->passive = (bool); }
#ifndef STANDALONE_FTP
#define FtpDebug(ftp, bool) { (ftp)->fd_debug = (bool); }
#endif
int FtpChdir(FTP_t, char *);
int FtpGet(FTP_t, char *);
int FtpEOF(FTP_t);
void FtpClose(FTP_t);
#endif
/* _FTP_H_INCLUDE */