mirror of
https://github.com/xcat2/xNBA.git
synced 2025-02-20 20:39:56 +00:00
[uri] Add uri_has_path()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
parent
a3252028d7
commit
d77b183f10
@ -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
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user