diff options
| author | Michael Brown | 2007-06-09 19:20:08 +0200 |
|---|---|---|
| committer | Michael Brown | 2007-06-09 19:20:08 +0200 |
| commit | 2c569fb240513b229384bf425f4708888b7880cf (patch) | |
| tree | c5ad810525a1f89b79b3615183f2768cd52d1b11 /src/include | |
| parent | Add our own trivial version of stdarg.h. This makes our build (diff) | |
| download | ipxe-2c569fb240513b229384bf425f4708888b7880cf.tar.gz ipxe-2c569fb240513b229384bf425f4708888b7880cf.tar.xz ipxe-2c569fb240513b229384bf425f4708888b7880cf.zip | |
Allow xfer_open() to take a struct uri as well as a URI string.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/gpxe/open.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/include/gpxe/open.h b/src/include/gpxe/open.h index 5e368486b..abba29c4c 100644 --- a/src/include/gpxe/open.h +++ b/src/include/gpxe/open.h @@ -15,13 +15,20 @@ struct sockaddr; /** Location types */ enum { + /** Location is a URI + * + * Parameter list for open() is: + * + * struct uri *uri; + */ + LOCATION_URI = 1, /** Location is a URI string * * Parameter list for open() is: * * const char *uri_string; */ - LOCATION_URI = 1, + LOCATION_URI_STRING, /** Location is a socket * * Parameter list for open() is: @@ -73,8 +80,9 @@ struct socket_opener { /** Register a socket opener */ #define __socket_opener __table ( struct socket_opener, socket_openers, 01 ) -extern int xfer_open_uri ( struct xfer_interface *xfer, - const char *uri_string ); +extern int xfer_open_uri ( struct xfer_interface *xfer, struct uri *uri ); +extern int xfer_open_uri_string ( struct xfer_interface *xfer, + const char *uri_string ); extern int xfer_open_named_socket ( struct xfer_interface *xfer, int semantics, struct sockaddr *peer, const char *name, struct sockaddr *local ); |
