#ifndef HEADER_CURL_TOOL_CFGABLE_H
#define HEADER_CURL_TOOL_CFGABLE_H
#include "tool_setup.h"
#include "tool_sdecls.h"
#include "tool_metalink.h"
struct GlobalConfig;
struct OperationConfig {
CURL *easy;
bool remote_time;
char *random_file;
char *egd_file;
char *useragent;
char *cookie;
char *cookiejar;
char *cookiefile;
bool cookiesession;
bool encoding;
bool tr_encoding;
unsigned long authtype;
bool use_resume;
bool resume_from_current;
bool disable_epsv;
bool disable_eprt;
bool ftp_pret;
long proto;
bool proto_present;
long proto_redir;
bool proto_redir_present;
curl_off_t resume_from;
char *postfields;
curl_off_t postfieldsize;
char *referer;
double timeout;
double connecttimeout;
long maxredirs;
curl_off_t max_filesize;
char *headerfile;
char *ftpport;
char *iface;
int localport;
int localportrange;
unsigned short porttouse;
char *range;
long low_speed_limit;
long low_speed_time;
char *dns_servers;
char *dns_interface;
char *dns_ipv4_addr;
char *dns_ipv6_addr;
char *userpwd;
char *login_options;
char *tls_username;
char *tls_password;
char *tls_authtype;
char *proxyuserpwd;
char *proxy;
int proxyver;
char *noproxy;
char *mail_from;
struct curl_slist *mail_rcpt;
char *mail_auth;
bool sasl_ir;
bool proxytunnel;
bool ftp_append;
bool use_ascii;
bool autoreferer;
bool failonerror;
bool include_headers;
bool no_body;
bool dirlistonly;
bool followlocation;
bool unrestricted_auth;
bool netrc_opt;
bool netrc;
char *netrc_file;
struct getout *url_list;
struct getout *url_last;
struct getout *url_get;
struct getout *url_out;
char *cipher_list;
char *cert;
char *cert_type;
char *cacert;
char *capath;
char *crlfile;
char *key;
char *key_type;
char *key_passwd;
char *pubkey;
char *hostpubmd5;
char *engine;
bool crlf;
char *customrequest;
char *krblevel;
long httpversion;
bool nobuffer;
bool readbusy;
bool globoff;
bool use_httpget;
bool insecure_ok;
bool create_dirs;
bool ftp_create_dirs;
bool ftp_skip_ip;
bool proxynegotiate;
bool proxyntlm;
bool proxydigest;
bool proxybasic;
bool proxyanyauth;
char *writeout;
bool writeenv;
struct curl_slist *quote;
struct curl_slist *postquote;
struct curl_slist *prequote;
long ssl_version;
long ip_version;
curl_TimeCond timecond;
time_t condtime;
struct curl_slist *headers;
struct curl_slist *proxyheaders;
struct curl_httppost *httppost;
struct curl_httppost *last_post;
struct curl_slist *telnet_options;
struct curl_slist *resolve;
HttpReq httpreq;
curl_off_t sendpersecond;
curl_off_t recvpersecond;
bool ftp_ssl;
bool ftp_ssl_reqd;
bool ftp_ssl_control;
bool ftp_ssl_ccc;
int ftp_ssl_ccc_mode;
char *socksproxy;
int socksver;
char *socks5_gssapi_service;
int socks5_gssapi_nec ;
bool tcp_nodelay;
long req_retry;
long retry_delay;
long retry_maxtime;
char *ftp_account;
char *ftp_alternative_to_user;
int ftp_filemethod;
long tftp_blksize;
bool ignorecl;
bool disable_sessionid;
bool raw;
bool post301;
bool post302;
bool post303;
bool nokeepalive;
long alivetime;
bool content_disposition;
int default_node_flags;
bool xattr;
long gssapi_delegation;
bool ssl_allow_beast;
bool use_metalink;
metalinkfile *metalinkfile_list;
metalinkfile *metalinkfile_last;
#ifdef CURLDEBUG
bool test_event_based;
#endif
char *xoauth2_bearer;
bool nonpn;
bool noalpn;
struct GlobalConfig *global;
struct OperationConfig *prev;
struct OperationConfig *next;
};
struct GlobalConfig {
CURL *easy;
int showerror;
bool mute;
bool noprogress;
bool isatty;
FILE *errors;
bool errors_fopened;
char *trace_dump;
FILE *trace_stream;
bool trace_fopened;
trace tracetype;
bool tracetime;
int progressmode;
char *libcurl;
struct OperationConfig *first;
struct OperationConfig *current;
struct OperationConfig *last;
};
void config_init(struct OperationConfig *config);
void config_free(struct OperationConfig *config);
#endif