summaryrefslogtreecommitdiffhomepage
path: root/src/conf.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/conf.h')
-rw-r--r--src/conf.h23
1 files changed, 13 insertions, 10 deletions
diff --git a/src/conf.h b/src/conf.h
index e89806a..572aeb1 100644
--- a/src/conf.h
+++ b/src/conf.h
@@ -22,8 +22,8 @@
#ifndef TINYPROXY_CONF_H
#define TINYPROXY_CONF_H
-#include "hashmap.h"
-#include "vector.h"
+#include "hsearch.h"
+#include "sblist.h"
#include "acl.h"
/*
@@ -38,7 +38,7 @@ typedef struct {
* Hold all the configuration time information.
*/
struct config_s {
- vector_t basicauth_list;
+ sblist *basicauth_list;
char *logf_name;
unsigned int syslog; /* boolean */
unsigned int port;
@@ -47,7 +47,7 @@ struct config_s {
unsigned int maxclients;
char *user;
char *group;
- vector_t listen_addrs;
+ sblist *listen_addrs;
#ifdef FILTER_ENABLE
char *filter;
unsigned int filter_url; /* boolean */
@@ -68,8 +68,10 @@ struct config_s {
#endif /* UPSTREAM_SUPPORT */
char *pidpath;
unsigned int idletimeout;
- char *bind_address;
+ sblist *bind_addrs;
unsigned int bindsame;
+ char *bind_ipv4mapped;
+ char *bind_ipv6mapped;
/*
* The configured name to use in the HTTP "Via" header field.
@@ -81,7 +83,7 @@ struct config_s {
/*
* Error page support. Map error numbers to file paths.
*/
- hashmap_t errorpages;
+ struct htab *errorpages;
/*
* Error page to be displayed if appropriate page cannot be located
@@ -99,22 +101,23 @@ struct config_s {
/*
* Store the list of port allowed by CONNECT.
*/
- vector_t connect_ports;
+ sblist *connect_ports;
/*
* Map of headers which should be let through when the
* anonymous feature is turned on.
*/
- hashmap_t anonymous_map;
+ struct htab *anonymous_map;
/*
* Extra headers to be added to outgoing HTTP requests.
*/
- vector_t add_headers;
+ sblist* add_headers;
};
extern int reload_config_file (const char *config_fname, struct config_s *conf);
-int config_compile_regex (void);
+int config_init (void);
+void free_config (struct config_s *conf);
#endif