X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=lib%2Furl%2Furl.h;h=49dff4ac9388827d4fcdd4f33acd91e3fa0bd301;hp=9043615590c1a7e95e5d938ccc2d0565af994456;hb=5d7f93f2ee09de515e1e474fd752d52590b51793;hpb=2163af58b5e631a2a8d2acd79b541ed884ab7b57;ds=sidebyside diff --git a/lib/url/url.h b/lib/url/url.h index 9043615..49dff4a 100644 --- a/lib/url/url.h +++ b/lib/url/url.h @@ -19,6 +19,7 @@ #if !defined(_PB_URL_PARSER_H) #define _PB_URL_PARSER_H +#include #include /** @@ -61,6 +62,7 @@ struct pb_url { }; bool is_url(const char *str); +int addr_scheme(const char *address); 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);