From a32cd520bd6dd8a72b4e796edb943eb92bc16b3d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 28 Nov 2001 16:00:18 +0000 Subject: more more more MORE --- lib/multi.h | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'lib/multi.h') 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() * -- cgit v1.2.3