X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Furl.h;h=c01c1693f1fae26f16a7b057e9f86d8478adfd56;hb=d67c39dbc6b6a3dccefd029df017cf813c834408;hp=882976a259507f4917a23f17fd119596e121b35a;hpb=8a7888b17705ae249f03ca3b22a013ed6584e39c;p=libucw.git diff --git a/lib/url.h b/lib/url.h index 882976a2..c01c1693 100644 --- a/lib/url.h +++ b/lib/url.h @@ -1,8 +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 @@ -35,6 +38,7 @@ struct url { byte *protocol; uns protoid; byte *user; + byte *pass; byte *host; uns port; /* ~0 if unspec */ byte *rest; @@ -68,7 +72,7 @@ char *url_error(uns); #define URL_PROTO_HTTP 1 #define URL_PROTO_FTP 2 #define URL_PROTO_FILE 3 -#define URL_PROTO_MAX 5 +#define URL_PROTO_MAX 4 #define URL_PNAMES { "unknown", "http", "ftp", "file" } #define URL_DEFPORTS { ~0, 80, 21, 0 }