summaryrefslogtreecommitdiff
path: root/libs/libcurl/src/pingpong.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libcurl/src/pingpong.h')
-rw-r--r--libs/libcurl/src/pingpong.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/libs/libcurl/src/pingpong.h b/libs/libcurl/src/pingpong.h
index ffd1fd7741..46a02d763e 100644
--- a/libs/libcurl/src/pingpong.h
+++ b/libs/libcurl/src/pingpong.h
@@ -48,9 +48,6 @@ typedef enum {
*/
struct pingpong {
size_t nread_resp; /* number of bytes currently read of a server response */
- bool pending_resp; /* set TRUE when a server response is pending or in
- progress, and is cleared once the last response is
- read */
char *sendthis; /* pointer to a buffer that is to be sent to the server */
size_t sendleft; /* number of bytes left to send from the sendthis buffer */
size_t sendsize; /* total size of the sendthis buffer */
@@ -69,14 +66,18 @@ struct pingpong {
CURLcode (*statemachine)(struct Curl_easy *data, struct connectdata *conn);
bool (*endofresp)(struct Curl_easy *data, struct connectdata *conn,
- char *ptr, size_t len, int *code);
+ const char *ptr, size_t len, int *code);
+ BIT(initialised);
+ BIT(pending_resp); /* set TRUE when a server response is pending or in
+ progress, and is cleared once the last response is
+ read */
};
#define PINGPONG_SETUP(pp,s,e) \
do { \
- pp->response_time = RESP_TIMEOUT; \
- pp->statemachine = s; \
- pp->endofresp = e; \
+ (pp)->response_time = RESP_TIMEOUT; \
+ (pp)->statemachine = s; \
+ (pp)->endofresp = e; \
} while(0)
/*