diff options
author | Michael Brown <mcb30@etherboot.org> | 2007-06-03 02:01:02 +0000 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2007-06-03 02:01:02 +0000 |
commit | a6f0a098da98a4274b202300f62c5c4b871b3e92 (patch) | |
tree | d89c14a4b6ec84075dfcb74e5c47c53bcb4da349 /src/include | |
parent | 182e3ed61d8db574c2bf7a091ce2221746259cbd (diff) | |
download | ipxe-a6f0a098da98a4274b202300f62c5c4b871b3e92.zip ipxe-a6f0a098da98a4274b202300f62c5c4b871b3e92.tar.gz ipxe-a6f0a098da98a4274b202300f62c5c4b871b3e92.tar.bz2 |
Add facility for resolving base+relative URIs (and paths).
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gpxe/uri.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/include/gpxe/uri.h b/src/include/gpxe/uri.h index 6fddcc3..f616238 100644 --- a/src/include/gpxe/uri.h +++ b/src/include/gpxe/uri.h @@ -125,6 +125,12 @@ uri_put ( struct uri *uri ) { } extern struct uri * parse_uri ( const char *uri_string ); -unsigned int uri_port ( struct uri *uri, unsigned int default_port ); +extern unsigned int uri_port ( struct uri *uri, unsigned int default_port ); +extern int unparse_uri ( char *buf, size_t size, struct uri *uri ); +extern struct uri * uri_dup ( struct uri *uri ); +extern char * resolve_path ( const char *base_path, + const char *relative_path ); +extern struct uri * resolve_uri ( struct uri *base_uri, + struct uri *relative_uri ); #endif /* _GPXE_URI_H */ |