summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown2005-05-01 21:10:04 +0200
committerMichael Brown2005-05-01 21:10:04 +0200
commit63482e4fe9b9bff00d8a1da6effeb801d9e22fc4 (patch)
tree073661e7f856f78e396b2dcda1e6fead708cb33a /src/include
parentProtocol names are x-slam and x-tftm (diff)
downloadipxe-63482e4fe9b9bff00d8a1da6effeb801d9e22fc4.tar.gz
ipxe-63482e4fe9b9bff00d8a1da6effeb801d9e22fc4.tar.xz
ipxe-63482e4fe9b9bff00d8a1da6effeb801d9e22fc4.zip
Made parse_url do more of the processing, to avoid duplicating parts of
nic.c in http.c
Diffstat (limited to 'src/include')
-rw-r--r--src/include/url.h20
1 files changed, 4 insertions, 16 deletions
diff --git a/src/include/url.h b/src/include/url.h
index bafd5521f..add34e397 100644
--- a/src/include/url.h
+++ b/src/include/url.h
@@ -1,22 +1,10 @@
#ifndef URL_H
#define URL_H
-/*
- * Information parsed from a URL string. "char *" pointers will point
- * to the start of the relevant portion of the original URL string,
- * which will have been modified by inserting terminating NULs at the
- * appropriate points. Use unparse_url() if you want to get back the
- * original string.
- *
- */
-struct url_info {
- char *protocol;
- char *host;
- char *port;
- char *file;
-};
+#include "proto.h"
+#include "in.h"
-extern void parse_url ( struct url_info *info, char *url );
-extern char * unparse_url ( struct url_info *info );
+extern int parse_url ( char *url, struct protocol **proto,
+ struct sockaddr_in *server, char **filename );
#endif /* URL_H */