mirror of
https://github.com/curl/curl.git
synced 2026-07-29 00:03:12 +03:00
typedefs: use the full structs in internal code...
... and save the typedef'ed names for headers and external APIs.
This commit is contained in:
parent
434f8d0389
commit
80388edefc
7 changed files with 51 additions and 49 deletions
|
|
@ -31,7 +31,7 @@
|
|||
/* The last #include file should be: */
|
||||
#include "memdebug.h"
|
||||
|
||||
CURLSH *
|
||||
struct Curl_share *
|
||||
curl_share_init(void)
|
||||
{
|
||||
struct Curl_share *share = calloc(1, sizeof(struct Curl_share));
|
||||
|
|
@ -49,9 +49,8 @@ curl_share_init(void)
|
|||
|
||||
#undef curl_share_setopt
|
||||
CURLSHcode
|
||||
curl_share_setopt(CURLSH *sh, CURLSHoption option, ...)
|
||||
curl_share_setopt(struct Curl_share *share, CURLSHoption option, ...)
|
||||
{
|
||||
struct Curl_share *share = (struct Curl_share *)sh;
|
||||
va_list param;
|
||||
int type;
|
||||
curl_lock_function lockfunc;
|
||||
|
|
@ -172,10 +171,8 @@ curl_share_setopt(CURLSH *sh, CURLSHoption option, ...)
|
|||
}
|
||||
|
||||
CURLSHcode
|
||||
curl_share_cleanup(CURLSH *sh)
|
||||
curl_share_cleanup(struct Curl_share *share)
|
||||
{
|
||||
struct Curl_share *share = (struct Curl_share *)sh;
|
||||
|
||||
if(share == NULL)
|
||||
return CURLSHE_INVALID;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue