]> mj.ucw.cz Git - libucw.git/blobdiff - lib/url.h
- buck2obj_alloc() initially allocates no buffers
[libucw.git] / lib / url.h
index c45d4525642a767afd766500e70986722bdcd6c8..a9c4449876646fccff0dfc8766e54505d53ecb74 100644 (file)
--- a/lib/url.h
+++ b/lib/url.h
@@ -1,8 +1,11 @@
 /*
  *     Sherlock Library -- URL Functions
  *
- *     (c) 1997 Martin Mares <mj@ucw.cz>
+ *     (c) 1997--2004 Martin Mares <mj@ucw.cz>
  *     (c) 2001 Robert Spalek <robert@ucw.cz>
+ *
+ *     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,8 +72,7 @@ char *url_error(uns);
 #define URL_PROTO_HTTP 1
 #define URL_PROTO_FTP 2
 #define URL_PROTO_FILE 3
-#define URL_PROTO_SQL 4
-#define URL_PROTO_MAX 5
+#define URL_PROTO_MAX 4
 
 #define URL_PNAMES { "unknown", "http", "ftp", "file" }
 #define URL_DEFPORTS { ~0, 80, 21, 0 }