diff options
author | nikita <nikita@NetBSD.org> | 2020-09-14 20:38:16 +0200 |
---|---|---|
committer | nikita <nikita@NetBSD.org> | 2020-09-14 20:38:16 +0200 |
commit | ea5627408e41592ac8750032de41b97038811d88 (patch) | |
tree | 851007eaf0e4e3ec6b97756e209b512792933b88 /include/gnurl/easy.h | |
parent | b8e9ccfa48a0b35e2c9dd560334237e591175be8 (diff) | |
parent | 5a1fc8d33808d7b22f57bdf9403cda7ff07b0670 (diff) | |
download | gnurl-ea5627408e41592ac8750032de41b97038811d88.tar.gz gnurl-ea5627408e41592ac8750032de41b97038811d88.tar.bz2 gnurl-ea5627408e41592ac8750032de41b97038811d88.zip |
Merge tag 'curl-7_71_1'
curl 7.71.1
Diffstat (limited to 'include/gnurl/easy.h')
-rw-r--r-- | include/gnurl/easy.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/gnurl/easy.h b/include/gnurl/easy.h index 592f5d3c1..9aef13396 100644 --- a/include/gnurl/easy.h +++ b/include/gnurl/easy.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -25,6 +25,17 @@ extern "C" { #endif +/* Flag bits in the curl_blob struct: */ +#define CURL_BLOB_COPY 1 /* tell libcurl to copy the data */ +#define CURL_BLOB_NOCOPY 0 /* tell libcurl to NOT copy the data */ + +struct curl_blob { + void *data; + size_t len; + unsigned int flags; /* bit 0 is defined, the rest are reserved and should be + left zeroes */ +}; + CURL_EXTERN CURL *curl_easy_init(void); CURL_EXTERN CURLcode curl_easy_setopt(CURL *curl, CURLoption option, ...); CURL_EXTERN CURLcode curl_easy_perform(CURL *curl); |