]> git.ipfire.org Git - thirdparty/curl.git/commit
multi: remove 'Curl_one_easy' struct, phase 1
authorDaniel Stenberg <daniel@haxx.se>
Thu, 1 Aug 2013 22:09:59 +0000 (00:09 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 3 Aug 2013 20:51:35 +0000 (22:51 +0200)
commit09b9fc9009bfe6b7b6fd5ba82e81b4ca76539d8d
treef3ac39747fce5bad3f067cb2746783b3473bf202
parent7da3caaf954c3688acbfcb0be7cf188bbfd65fa4
multi: remove 'Curl_one_easy' struct, phase 1

The motivation for having a separate struct that keep track of an easy
handle when using the multi handle was removed when we switched to
always using the multi interface internally. Now they were just two
separate struct that was always allocated for each easy handle.

This first step just moves the Curl_one_easy struct members into the
SessionHandle struct and hides this somehow (== keeps the source code
changes to a minimum) by defining Curl_one_easy to SessionHandle

The biggest changes in this commit are:

 1 - the linked list of easy handles had to be changed somewhat due
     to the new struct layout. This made the main linked list pointer
     get renamed to 'easyp' and there's also a new pointer to the last
     node, called easylp. It is no longer circular but ends with ->next
     pointing to NULL. New nodes are still added last.

 2 - easy->state is now called easy->mstate to avoid name collision
lib/multi.c
lib/multihandle.h
lib/urldata.h