aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/gpxe/open.h
diff options
context:
space:
mode:
authorMichael Brown <mcb30@etherboot.org>2007-06-09 18:20:08 +0100
committerMichael Brown <mcb30@etherboot.org>2007-06-09 18:20:08 +0100
commit2c569fb240513b229384bf425f4708888b7880cf (patch)
treec5ad810525a1f89b79b3615183f2768cd52d1b11 /src/include/gpxe/open.h
parent1ae549b892327784141a828f00c68c0b9bc06142 (diff)
downloadipxe-2c569fb240513b229384bf425f4708888b7880cf.tar.gz
Allow xfer_open() to take a struct uri as well as a URI string.
Diffstat (limited to 'src/include/gpxe/open.h')
-rw-r--r--src/include/gpxe/open.h14
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 );