diff options
Diffstat (limited to 'lib/multi.h')
-rw-r--r-- | lib/multi.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/lib/multi.h b/lib/multi.h index 99ae86a57..3fe2bdf6a 100644 --- a/lib/multi.h +++ b/lib/multi.h @@ -62,14 +62,23 @@ typedef enum { CURLM_LAST } CURLMcode; +typedef enum { + CURLMSG_NONE, /* first, not used */ + CURLMSG_DONE, /* This easy handle has completed. 'whatever' points to + the CURLcode of the transfer */ + CURLMSG_LAST /* last, not used */ +} CURLMSG; + struct CURLMsg { - CURL *easy_handle; - void *whatever; + CURLMSG msg; /* what this message means */ + CURL *easy_handle; /* the handle it concerns */ + union { + void *whatever; /* message-specific data */ + CURLcode result; /* return code for transfer */ + } data; }; typedef struct CURLMsg CURLMsg; -typedef void * CURLMinfo; - /* * Name: curl_multi_init() * |