X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Furl.h;h=c01c1693f1fae26f16a7b057e9f86d8478adfd56;hb=d67c39dbc6b6a3dccefd029df017cf813c834408;hp=8815da9b60f561af77b57a26f37b2713b36af5d4;hpb=77fab8024c8ba7c8c0b3a52c22b64d52b5c85818;p=libucw.git diff --git a/lib/url.h b/lib/url.h index 8815da9b..c01c1693 100644 --- a/lib/url.h +++ b/lib/url.h @@ -1,7 +1,11 @@ /* * Sherlock Library -- URL Functions * - * (c) 1997 Martin Mares + * (c) 1997--2002 Martin Mares + * (c) 2001 Robert Spalek + * + * This software may be freely distributed and used according to the terms + * of the GNU Lesser General Public License. */ #ifndef _SHERLOCK_URL_H @@ -34,6 +38,7 @@ struct url { byte *protocol; uns protoid; byte *user; + byte *pass; byte *host; uns port; /* ~0 if unspec */ byte *rest; @@ -45,7 +50,9 @@ int url_normalize(struct url *, struct url *); int url_canonicalize(struct url *); int url_pack(struct url *, byte *); int url_canon_split(byte *, byte *, byte *, struct url *); +int url_auto_canonicalize(byte *, byte *); uns identify_protocol(byte *); +int url_has_repeated_component(byte *url); /* Error codes */