X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=lib%2Furl%2Furl.h;h=25e1ad8175b9681935c5c53ee5a932638d1531d2;hp=997cdcb1333465889a561bf1115449cc51c0c6c0;hb=7832d10c59cfe7f06e19bc6f0b6acaac1a552618;hpb=d9a54dc81723f83a21e24aa362a7a356d266e942;ds=sidebyside diff --git a/lib/url/url.h b/lib/url/url.h index 997cdcb..25e1ad8 100644 --- a/lib/url/url.h +++ b/lib/url/url.h @@ -19,6 +19,8 @@ #if !defined(_PB_URL_PARSER_H) #define _PB_URL_PARSER_H +#include + /** * enum pb_url_scheme - Enumeration of the URL schemes we can handle. */ @@ -58,6 +60,7 @@ struct pb_url { char *file; }; +bool is_url(const char *str); struct pb_url *pb_url_parse(void *ctx, const char *url_str); struct pb_url *pb_url_join(void *ctx, const struct pb_url *url, const char *s); char *pb_url_to_string(struct pb_url *url);