summaryrefslogtreecommitdiff
path: root/lib/easy.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-11-24 23:16:55 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-11-24 23:16:55 +0000
commit13648f8ccda6f99674ac407640474634e856804c (patch)
tree9ce7e3edb2ade2f936428e584813b61285656fcf /lib/easy.c
parent5b809a31047111dab9dd11f48f2bb7db00f0e23e (diff)
downloadcurl-13648f8ccda6f99674ac407640474634e856804c.tar.gz
struct HandleData is now called struct SingleRequest, and is only for data that
is inited at the start of the DO action. I removed the Curl_transfer_keeper struct completely, and I had to move out a few struct members (that had to be set before DO or used after DONE) to the UrlState struct. The SingleRequest struct is accessed with SessionHandle->req. One of the biggest reasons for doing this was the bunch of duplicate struct members in HandleData and Curl_transfer_keeper since it was really messy to keep track of two variables with the same name and basically the same purpose!
Diffstat (limited to 'lib/easy.c')
-rw-r--r--lib/easy.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/easy.c b/lib/easy.c
index e068dc693..adc88ec2f 100644
--- a/lib/easy.c
+++ b/lib/easy.c
@@ -528,9 +528,9 @@ void Curl_easy_addmulti(struct SessionHandle *data,
void Curl_easy_initHandleData(struct SessionHandle *data)
{
- memset(&data->reqdata, 0, sizeof(struct HandleData));
+ memset(&data->req, 0, sizeof(struct SingleRequest));
- data->reqdata.maxdownload = -1;
+ data->req.maxdownload = -1;
}
/*
@@ -676,11 +676,11 @@ void curl_easy_reset(CURL *curl)
{
struct SessionHandle *data = (struct SessionHandle *)curl;
- Curl_safefree(data->reqdata.pathbuffer);
- data->reqdata.pathbuffer=NULL;
+ Curl_safefree(data->state.pathbuffer);
+ data->state.pathbuffer=NULL;
- Curl_safefree(data->reqdata.proto.generic);
- data->reqdata.proto.generic=NULL;
+ Curl_safefree(data->state.proto.generic);
+ data->state.proto.generic=NULL;
/* zero out UserDefined data: */
Curl_freeset(data);