a098749d6b
1. Fix a few bugs in the ftp installation code and implement proper ftp and network shutdown routines. 2. Clean up the menus a fair bit - add a FreeBSD configuration menu. 3. Eliminate the last of the "chaining" - the installation now does the most obvious thing in the most obvious cases and doesn't present you with more menus than you were expecting. This makes it necessary to be a little more explicit in places, but it's still less confusing. 4. Add a few more safety nets for the user. Change a few hard-and-fast limits to warnings (it now runs as non-root, Bruce). 5. Add descriptions for all the supported ethernet cards. 6. Make the cpio floppy extract put up a menu requesting the drive you wish to use if you have more than one; don't just always assume drive A.
30 lines
665 B
C
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 */
|