]> mj.ucw.cz Git - libucw.git/blobdiff - lib/url.h
As usually, stuff in lib/* is LGPL'ed.
[libucw.git] / lib / url.h
index e36b46a65b35bebdafc646cb769343db5010b57f..44c9bc2ce6513247bef39d86e80a0442cead672c 100644 (file)
--- a/lib/url.h
+++ b/lib/url.h
@@ -2,8 +2,15 @@
  *     Sherlock Library -- URL Functions
  *
  *     (c) 1997 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
+#define _SHERLOCK_URL_H
+
 #define MAX_URL_SIZE 1024
 
 /* Non-control meanings of control characters */
@@ -42,7 +49,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 */
 
@@ -69,3 +78,5 @@ char *url_error(uns);
 #define URL_PATH_FLAGS { 0, 1, 1, 1 }
 
 extern byte *url_proto_names[];
+
+#endif