diff options
Diffstat (limited to 'src/tool_cfgable.h')
-rw-r--r-- | src/tool_cfgable.h | 9 |
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); |