X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fhtml-parse.h;h=31dbf38f6bad15d43298f44d61ca41f34301676c;hp=7d503bda1c641f9eb161e538a37c6155f61555f8;hb=ae1d264fcc190f9c74cb490aa6da0240b0b77b1e;hpb=a9c3c58c9fb22e71e0878d4da1d3de0cd9e36445 diff --git a/src/html-parse.h b/src/html-parse.h index 7d503bda..31dbf38f 100644 --- a/src/html-parse.h +++ b/src/html-parse.h @@ -6,7 +6,7 @@ This file is part of GNU Wget. GNU Wget is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. + (at your option) any later version. GNU Wget is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -53,7 +53,13 @@ struct taginfo { const char *end_position; /* end position of tag */ }; -void map_html_tags PARAMS ((const char *, int, const char **, const char **, - void (*) (struct taginfo *, void *), void *)); +/* Flags for map_html_tags: */ +#define MHT_STRICT_COMMENTS 1 /* use strict comment interpretation */ +#define MHT_TRIM_VALUES 2 /* trim attribute values, e.g. interpret + as "foo" */ + +void map_html_tags PARAMS ((const char *, int, + void (*) (struct taginfo *, void *), void *, + int, const char **, const char **)); #endif /* HTML_PARSE_H */