summaryrefslogtreecommitdiffhomepage
path: root/src/filter.h
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2002-06-07 18:36:22 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2002-06-07 18:36:22 +0000
commit7e1de2012cd4e3f882be91557e8e7242ff0c478f (patch)
tree0b7ba81747dbc1bb74c5f04ba31ee677a7c41bca /src/filter.h
parentff56e32e8ec8e546687f980a7d697a97bb82e74c (diff)
Added code to handle the "FilterDefaultDeny" directive. The filter_set_default_policy() function is used to select the default policy (either default allow or default deny) for the filtering code. Also, the two filtering functions now support the policy code.
Diffstat (limited to 'src/filter.h')
-rw-r--r--src/filter.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/filter.h b/src/filter.h
index 4d6364e..6785b08 100644
--- a/src/filter.h
+++ b/src/filter.h
@@ -1,4 +1,4 @@
-/* $Id: filter.h,v 1.4 2002-05-27 01:56:22 rjkaes Exp $
+/* $Id: filter.h,v 1.5 2002-06-07 18:36:21 rjkaes Exp $
*
* See 'filter.c' for a detailed description.
*
@@ -18,9 +18,16 @@
#ifndef _TINYPROXY_FILTER_H_
#define _TINYPROXY_FILTER_H_
+typedef enum {
+ FILTER_DEFAULT_ALLOW,
+ FILTER_DEFAULT_DENY,
+} filter_policy_t;
+
extern void filter_init(void);
extern void filter_destroy(void);
extern int filter_domain(const char *host);
extern int filter_url(const char *url);
+extern void filter_set_default_policy(filter_policy_t policy);
+
#endif