tool_cfgable: Added global config structure

This commit is contained in:
Steve Holme 2014-02-23 13:15:31 +00:00
parent 705a4cb549
commit 2249f7fe70
2 changed files with 12 additions and 2 deletions

View file

@ -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);