X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=lib%2Furl%2Furl.h;h=9043615590c1a7e95e5d938ccc2d0565af994456;hp=40c11645877907d67617c23866799d1c6b3010df;hb=3f06f8808f79f13650394bab80bf96426323a5f8;hpb=6276a57e76cf22aac639236d4782b56e2e5b9d5e diff --git a/lib/url/url.h b/lib/url/url.h index 40c1164..9043615 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,11 @@ 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_copy(void *ctx, const struct pb_url *url); 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);