Mercurial > dnsbl
diff src/scanner.h @ 117:aa07452e641b
uribl patch from Jeff Evans <jeffe@tricab.com>
author | carl |
---|---|
date | Sun, 12 Mar 2006 10:15:39 -0800 |
parents | 81f1e400e8ab |
children | ecb40aa3eaa5 |
line wrap: on
line diff
--- a/src/scanner.h Sun Jan 08 10:27:24 2006 -0800 +++ b/src/scanner.h Sun Mar 12 10:15:39 2006 -0800 @@ -11,18 +11,20 @@ mlfiPriv *priv; // needed for syslog string_set *html_tags; // valid tags string_set *tlds; // valid tlds + string_set *cctlds; // valid cctlds string_set hosts; int bad_html_tags; int binary_tags; public: - recorder(mlfiPriv *priv_, string_set &html_tags_, string_set &tlds_); + recorder(mlfiPriv *priv_, string_set &html_tags_, string_set &tlds_, string_set &cctlds_); ~recorder() { empty(); }; void empty(); void new_url(char *host); void new_tag(char *tag); void binary(); mlfiPriv *get_priv() { return priv; }; + string_set *get_cctlds() { return cctlds; }; string_set *get_tlds() { return tlds; }; string_set &get_hosts() { return hosts; }; bool excessive_bad_tags(int limit) { return (limit > 0) && (bad_html_tags > limit) && (bad_html_tags > 3*binary_tags); };