summaryrefslogtreecommitdiff
path: root/lib/mime.h
diff options
context:
space:
mode:
authorPatrick Monnerat <patrick@monnerat.net>2017-10-08 18:38:34 +0100
committerPatrick Monnerat <patrick@monnerat.net>2017-10-08 18:38:34 +0100
commitb557182db1622510ebba3344747b6787994a75e2 (patch)
tree8659088a34fa0088fca2922ce4390e212658fc59 /lib/mime.h
parentdd97fd3bb3e365681de3b3254169bea3608688ea (diff)
downloadcurl-b557182db1622510ebba3344747b6787994a75e2.tar.gz
mime: improve unbinding top multipart from easy handle.
Also avoid dangling pointers in referencing parts.
Diffstat (limited to 'lib/mime.h')
-rw-r--r--lib/mime.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/mime.h b/lib/mime.h
index a14485707..7827f7412 100644
--- a/lib/mime.h
+++ b/lib/mime.h
@@ -122,6 +122,8 @@ struct curl_mimepart_s {
/* Prototypes. */
void Curl_mime_initpart(curl_mimepart *part, struct Curl_easy *easy);
void Curl_mime_cleanpart(curl_mimepart *part);
+CURLcode Curl_mime_set_subparts(curl_mimepart *part,
+ curl_mime *subparts, int take_ownership);
CURLcode Curl_mime_prepare_headers(curl_mimepart *part,
const char *contenttype,
const char *disposition,