Lines Matching refs:mime
159 void tool_mime_free(struct tool_mime *mime) in tool_mime_free() argument
161 if(mime) { in tool_mime_free()
162 if(mime->subparts) in tool_mime_free()
163 tool_mime_free(mime->subparts); in tool_mime_free()
164 if(mime->prev) in tool_mime_free()
165 tool_mime_free(mime->prev); in tool_mime_free()
166 Curl_safefree(mime->name); in tool_mime_free()
167 Curl_safefree(mime->filename); in tool_mime_free()
168 Curl_safefree(mime->type); in tool_mime_free()
169 Curl_safefree(mime->encoder); in tool_mime_free()
170 Curl_safefree(mime->data); in tool_mime_free()
171 curl_slist_free_all(mime->headers); in tool_mime_free()
172 free(mime); in tool_mime_free()
239 curl_mime *mime) in tool2curlparts() argument
247 ret = tool2curlparts(curl, m->prev, mime); in tool2curlparts()
249 part = curl_mime_addpart(mime); in tool2curlparts()
306 CURLcode tool2curlmime(CURL *curl, struct tool_mime *m, curl_mime **mime) in tool2curlmime() argument
310 *mime = curl_mime_init(curl); in tool2curlmime()
311 if(!*mime) in tool2curlmime()
314 ret = tool2curlparts(curl, m->subparts, *mime); in tool2curlmime()
316 curl_mime_free(*mime); in tool2curlmime()
317 *mime = NULL; in tool2curlmime()