summaryrefslogtreecommitdiff
path: root/src/getht.h
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2008-05-08 16:23:17 +0100
committerNick White <git@njw.me.uk>2008-05-08 16:23:17 +0100
commitfe92b3a849126f0bdc4469c236caafae28dceab8 (patch)
tree7a4e116c8b1a1039f45c8f7d12680b27be6c1a7c /src/getht.h
parent3270ba5e383587e38ff7b4e8bb7f5d4cf7813766 (diff)
Switched to using config structure from global variables
Diffstat (limited to 'src/getht.h')
-rw-r--r--src/getht.h20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/getht.h b/src/getht.h
index f2315d4..4ec0f4a 100644
--- a/src/getht.h
+++ b/src/getht.h
@@ -26,20 +26,26 @@
#include <curl/curl.h>
-struct config {
- char * proxytype;
- char * proxyauth;
- char proxy_addr[STR_MAX];
- long proxy_port;
- char proxy_user[STR_MAX];
- char proxy_pass[STR_MAX];
+struct proxy_options {
+ char type;
+ char auth;
+ char address[STR_MAX];
+ long port;
+ char user[STR_MAX];
+ char pass[STR_MAX];
+};
+struct config {
char toc_xml[STR_MAX];
char issue_uri[STR_MAX];
char save_path[STR_MAX];
+ struct proxy_options proxy;
+
int startup_check;
+ int verbose;
+
CURL *curl_handle;
};