diff options
Diffstat (limited to 'src/include/gpxe/ftp.h')
| -rw-r--r-- | src/include/gpxe/ftp.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/include/gpxe/ftp.h b/src/include/gpxe/ftp.h index 6063abe9b..6fad15276 100644 --- a/src/include/gpxe/ftp.h +++ b/src/include/gpxe/ftp.h @@ -8,8 +8,12 @@ */ #include <stdint.h> +#include <gpxe/async.h> #include <gpxe/tcp.h> +/** FTP default port */ +#define FTP_PORT 21 + /** * FTP states * @@ -45,12 +49,8 @@ struct ftp_request { * remote server. */ void ( *callback ) ( char *data, size_t len ); - /** Completion indicator - * - * This will be set to a non-zero value when the transfer is - * complete. A negative value indicates an error. - */ - int complete; + /** Asynchronous operation for this FTP operation */ + struct async_operation aop; /** Current state */ enum ftp_state state; @@ -69,6 +69,6 @@ struct ftp_request { struct tcp_connection tcp_data; }; -extern void ftp_connect ( struct ftp_request *ftp ); +struct async_operation * ftp_get ( struct ftp_request *ftp ); -#endif +#endif /* _GPXE_FTP_H */ |
