mirror of
https://github.com/ipxe/ipxe
synced 2025-12-11 22:11:08 +03:00
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user