david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[uri] Add uri_has_path()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2011-02-01 04:25:19 +00:00
parent a3252028d7
commit d77b183f10
1 changed files with 10 additions and 0 deletions

View File

@ -113,6 +113,16 @@ static inline int uri_is_absolute ( struct uri *uri ) {
return ( uri->scheme != NULL );
}
/**
* URI has a path
*
* @v uri URI
* @ret has_path URI has a path
*/
static inline int uri_has_path ( struct uri *uri ) {
return ( uri->path && ( uri->path[0] != '\0' ) );
}
/**
* URI has an absolute path
*