[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 );
|
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
|
* URI has an absolute path
|
||||||
*
|
*
|
||||||
|
|
Reference in New Issue