Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[uri] Add uri_has_path()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Feb 1, 2011
1 parent a325202 commit d77b183
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/include/ipxe/uri.h
Expand Up @@ -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
*
Expand Down

0 comments on commit d77b183

Please sign in to comment.