diff src/context.h @ 76:81f1e400e8ab

start coding on new config syntax
author carl
date Sat, 16 Jul 2005 13:47:19 -0700
parents 1142e46be550
children c1280cd3e248
line wrap: on
line diff
--- a/src/context.h	Wed Jul 13 23:04:14 2005 -0700
+++ b/src/context.h	Sat Jul 16 13:47:19 2005 -0700
@@ -58,6 +58,7 @@
     CONTEXT(CONTEXTP parent_, char *name_);
     ~CONTEXT();
     CONTEXTP    get_parent()                                {return parent;};
+    bool        is_parent(CONTEXTP p);      // is p a parent of this?
     char*       get_full_name(char *buf, int size);
     void        add_context(CONTEXTP child)                 {children[child->name] = child;};
     bool        allow_env_to(char *to)                      {return (parent) ? parent->cover_env_to(to) : true;};
@@ -88,15 +89,15 @@
     void        add_dnsbl(DNSBLP dns)                       {dnsbl_list.push_back(dns);};
     DNSBLP      find_dnsbl(char *name);
 
+    bool            get_content_filtering()                 {return content_filtering;};
     int             get_host_limit()                        {return host_limit;};
     bool            get_host_random()                       {return host_random;};
-    char*           get_content_suffix()                    {return content_suffix;};
-    char*           get_content_message()                   {return content_message;};
-    string_set&     get_content_host_ignore()               {return content_host_ignore;};
-    string_set&     get_content_tlds()                      {return content_tlds;};
-    string_set&     get_html_tags()                         {return html_tags;};
-    dnsblp_list&    get_dnsbl_list()                        {return dnsbl_list;};
-    bool            get_content_filtering()                 {return content_filtering;};
+    char*           get_content_suffix();
+    char*           get_content_message();
+    string_set&     get_content_host_ignore();
+    string_set&     get_content_tlds();
+    string_set&     get_html_tags();
+    dnsblp_list&    get_dnsbl_list();
 
     bool        acceptable_content(recorder &memory, char *&msg);
     bool        ignore_host(char *host);
@@ -122,13 +123,6 @@
     void        add_context(CONTEXTP con);
     void        add_to(char *to, CONTEXTP con);
     CONTEXTP    find_context(char *to);
-
-    char*       get_content_suffix()                        {return default_context->get_content_suffix()      ;};
-    char*       get_content_message()                       {return default_context->get_content_message()     ;};
-    string_set& get_content_host_ignore()                   {return default_context->get_content_host_ignore() ;};
-    string_set& get_content_tlds()                          {return default_context->get_content_tlds()        ;};
-    string_set& get_html_tags()                             {return default_context->get_html_tags()           ;};
-
     void        dump();
 };