comparison src/context.h @ 74:b7449114ebb0

start coding on new config syntax
author carl
date Sun, 10 Jul 2005 14:19:00 -0700
parents 2b369f7db7bf
children 1142e46be550
comparison
equal deleted inserted replaced
73:2b369f7db7bf 74:b7449114ebb0
98 string_set& get_content_tlds() {return content_tlds;}; 98 string_set& get_content_tlds() {return content_tlds;};
99 string_set& get_html_tags() {return html_tags;}; 99 string_set& get_html_tags() {return html_tags;};
100 dnsblp_list& get_dnsbl_list() {return dnsbl_list;}; 100 dnsblp_list& get_dnsbl_list() {return dnsbl_list;};
101 bool get_content_filtering() {return content_filtering;}; 101 bool get_content_filtering() {return content_filtering;};
102 102
103 bool acceptable_content(recorder &memory); 103 bool acceptable_content(recorder &memory, char *&msg);
104 bool ignore_host(char *host); 104 bool ignore_host(char *host);
105 105
106 void dump(int level = 0); 106 void dump(int level = 0);
107 }; 107 };
108 108
164 extern char *token_unknown; 164 extern char *token_unknown;
165 extern char *token_white; 165 extern char *token_white;
166 166
167 extern string_set all_strings; // owns all the strings, only modified by the config loader thread 167 extern string_set all_strings; // owns all the strings, only modified by the config loader thread
168 168
169 static void discard(string_set &s); 169 void discard(string_set &s);
170 char* register_string(string_set &s, char *name); 170 char* register_string(string_set &s, char *name);
171 char* register_string(char *name); 171 char* register_string(char *name);
172 CONFIG *parse_config(char *fn); 172 CONFIG *parse_config(char *fn);
173 bool load_conf(CONFIG &dc, char *fn); 173 bool load_conf(CONFIG &dc, char *fn);
174 void token_init(); 174 void token_init();