aboutsummaryrefslogtreecommitdiff
path: root/src/tool_cfgable.h
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-02-23 13:15:31 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-02-23 13:12:47 +0000
commit2249f7fe70a056498ba1ebd59abc47ca9b37cd3a (patch)
tree331e6ffa8a4ea78f003e8bff5de56f35d2ea4f98 /src/tool_cfgable.h
parent705a4cb549d7cd798162430512f482ba930226d6 (diff)
tool_cfgable: Added global config structure
Diffstat (limited to 'src/tool_cfgable.h')
-rw-r--r--src/tool_cfgable.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/tool_cfgable.h b/src/tool_cfgable.h
index 511227cb6..69c2c2ee9 100644
--- a/src/tool_cfgable.h
+++ b/src/tool_cfgable.h
@@ -28,7 +28,7 @@
#include "tool_metalink.h"
struct OperationConfig {
- CURL *easy; /* once we have one, we keep it here */
+ CURL *easy; /* A copy of the handle from GlobalConfig */
bool remote_time;
char *random_file;
char *egd_file;
@@ -220,6 +220,13 @@ struct OperationConfig {
struct OperationConfig* next; /* Always last in the struct */
};
+struct GlobalConfig {
+ CURL *easy; /* Once we have one, we keep it here */
+
+ struct OperationConfig *first;
+ struct OperationConfig *last; /* Always last in the struct */
+};
+
void config_init(struct OperationConfig* config);
void config_free(struct OperationConfig* config);