Update ftp.c and hello.c to use the generic async_operations API.

This commit is contained in:
Michael Brown
2006-06-19 15:46:58 +00:00
parent 15397db2b4
commit 3a660f9b25
6 changed files with 112 additions and 26 deletions

View File

@@ -9,6 +9,7 @@
#include <stdint.h>
#include <gpxe/tcp.h>
#include <gpxe/async.h>
enum hello_state {
HELLO_SENDING_MESSAGE = 1,
@@ -37,10 +38,10 @@ struct hello_request {
* remote server.
*/
void ( *callback ) ( char *data, size_t len );
/** Connection complete indicator */
int complete;
/** Asynchronous operation */
struct async_operation aop;
};
extern void hello_connect ( struct hello_request *hello );
extern struct async_operation * say_hello ( struct hello_request *hello );
#endif