X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=lib%2Furl%2Furl.h;h=25e1ad8175b9681935c5c53ee5a932638d1531d2;hp=40c11645877907d67617c23866799d1c6b3010df;hb=7832d10c59cfe7f06e19bc6f0b6acaac1a552618;hpb=6276a57e76cf22aac639236d4782b56e2e5b9d5e;ds=inline diff --git a/lib/url/url.h b/lib/url/url.h index 40c1164..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,8 +60,10 @@ 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); const char *pb_url_scheme_name(enum pb_url_scheme scheme);