From 2c569fb240513b229384bf425f4708888b7880cf Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sat, 9 Jun 2007 18:20:08 +0100 Subject: Allow xfer_open() to take a struct uri as well as a URI string. --- src/include/gpxe/open.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src/include') 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 ); -- cgit v1.2.3-55-g7522