summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <arch@njw.me.uk>2008-05-03 02:14:24 +0000
committerNick White <arch@njw.me.uk>2008-05-03 02:14:24 +0000
commitb959f22eef3397c2383c4fefa8f430486b3fb905 (patch)
tree6be989a7a4f5a920bfc6d755f754b1f8395e23a8
parent3487cada8f2ec50b20ccf919d36df211030f1088 (diff)
Corrected minor make error
(from last commit - not sure if it went smoothly) Altered name of issuepath config variable to savepath, in config.ini as well as code Altered name of issue_xml config variable to toc_xml Removed unnecessary variable definitions from header (new commit) Corrected introduced Makefile error Added (currently unused) config options structure git-archimport-id: getht@sv.gnu.org/getht--mainline--0.1--patch-50
-rw-r--r--src/Makefile.am2
-rw-r--r--src/getht.h20
2 files changed, 21 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 254ac6b..e6b2bc1 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -4,4 +4,4 @@ bin_PROGRAMS = getht
getht_SOURCES = config.c cli.c download.c getht.c issuemem.c \
tocxml.c xml.c \
- config.h getht.h issue.h version.h
+ getht.h issue.h version.h
diff --git a/src/getht.h b/src/getht.h
index 8c09c3f..6f7bc1d 100644
--- a/src/getht.h
+++ b/src/getht.h
@@ -26,3 +26,23 @@
#define ISS_XML_FILE "htde_toc.xml"
#define STR_MAX 512
+
+#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];
+
+ char toc_xml[STR_MAX];
+ char issue_uri[STR_MAX];
+
+ char save_path[STR_MAX];
+
+ int startup_check;
+
+ CURL *curl_handle;
+};