]> mj.ucw.cz Git - libucw.git/blobdiff - lib/url.h
Implemented base-224 encoder and decoder.
[libucw.git] / lib / url.h
index 8815da9b60f561af77b57a26f37b2713b36af5d4..52c53fa504b380612459323ad881357ae2bb2feb 100644 (file)
--- a/lib/url.h
+++ b/lib/url.h
@@ -2,6 +2,7 @@
  *     Sherlock Library -- URL Functions
  *
  *     (c) 1997 Martin Mares <mj@ucw.cz>
+ *     (c) 2001 Robert Spalek <robert@ucw.cz>
  */
 
 #ifndef _SHERLOCK_URL_H
@@ -45,7 +46,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 */
 
@@ -65,9 +68,10 @@ char *url_error(uns);
 #define URL_PROTO_HTTP 1
 #define URL_PROTO_FTP 2
 #define URL_PROTO_FILE 3
-#define URL_PROTO_MAX 4
+#define URL_PROTO_SQL 4
+#define URL_PROTO_MAX 5
 
-#define URL_PNAMES { "unknown", "http", "ftp", "file" }
+#define URL_PNAMES { "unknown", "http", "ftp", "file", "sql" }
 #define URL_DEFPORTS { ~0, 80, 21, 0 }
 #define URL_PATH_FLAGS { 0, 1, 1, 1 }