X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Firi.h;h=dd5876bec49264e58ad7fbfb1743e684396247d9;hp=e7f3fe3e46eaf6172f115bd4dc147c5da7d4f255;hb=d763f8bf6d6e13ce006ffab616cc8a77e747a633;hpb=b967d49f79b6e0ce73559bd30d231bddc2e4b232 diff --git a/src/iri.h b/src/iri.h index e7f3fe3e..dd5876be 100644 --- a/src/iri.h +++ b/src/iri.h @@ -31,9 +31,10 @@ as that of the covered work. */ #define IRI_H struct iri { - char *uri_encoding; /* Encoding of the uri to fetch */ + char *uri_encoding; /* Encoding of the uri to fetch */ char *content_encoding; /* Encoding of links inside the fetched file */ - bool utf8_encode; /* Will/Is the current url encoded in utf8 */ + char *orig_url; /* */ + bool utf8_encode; /* Will/Is the current url encoded in utf8 */ }; #ifdef ENABLE_IRI @@ -46,6 +47,7 @@ char *idn_encode (struct iri *i, char *host); char *idn_decode (char *host); bool remote_to_utf8 (struct iri *i, const char *str, const char **new); struct iri *iri_new (void); +struct iri *iri_dup (const struct iri *); void iri_free (struct iri *i); void set_uri_encoding (struct iri *i, char *charset, bool force); void set_content_encoding (struct iri *i, char *charset); @@ -62,6 +64,7 @@ struct iri dummy_iri; #define idn_decode(str) NULL #define remote_to_utf8(a,b,c) false #define iri_new() (&dummy_iri) +#define iri_dup(a) (&dummy_iri) #define iri_free(a) #define set_uri_encoding(a,b,c) #define set_content_encoding(a,b)