Lines Matching refs:part
242 curl_mimepart *part = NULL; in tool2curlparts() local
249 part = curl_mime_addpart(mime); in tool2curlparts()
250 if(!part) in tool2curlparts()
259 ret = curl_mime_subparts(part, submime); in tool2curlparts()
266 ret = curl_mime_data(part, m->data, CURL_ZERO_TERMINATED); in tool2curlparts()
271 ret = curl_mime_filedata(part, m->data); in tool2curlparts()
273 ret = curl_mime_filename(part, NULL); in tool2curlparts()
281 ret = curl_mime_data_cb(part, m->size, in tool2curlparts()
293 ret = curl_mime_filename(part, filename); in tool2curlparts()
295 ret = curl_mime_type(part, m->type); in tool2curlparts()
297 ret = curl_mime_headers(part, m->headers, 0); in tool2curlparts()
299 ret = curl_mime_encoder(part, m->encoder); in tool2curlparts()
301 ret = curl_mime_name(part, m->name); in tool2curlparts()
731 struct tool_mime *part = NULL; in formparse() local
762 part = tool_mime_new_parts(*mimecurrent); in formparse()
763 if(!part) in formparse()
765 *mimecurrent = part; in formparse()
766 part->headers = headers; in formparse()
768 SET_TOOL_MIME_PTR(part, type); in formparse()
807 part = tool_mime_new_filedata(subparts, data, TRUE, &res); in formparse()
808 if(!part) in formparse()
810 part->headers = headers; in formparse()
812 part->config = config->global; in formparse()
817 if(part->size > 0) { in formparse()
822 Curl_safefree(part->data); in formparse()
823 part->data = NULL; in formparse()
824 part->size = -1; in formparse()
827 SET_TOOL_MIME_PTR(part, filename); in formparse()
828 SET_TOOL_MIME_PTR(part, type); in formparse()
829 SET_TOOL_MIME_PTR(part, encoder); in formparse()
833 part = (*mimecurrent)->subparts; /* Set name on group. */ in formparse()
843 part = tool_mime_new_filedata(*mimecurrent, data, FALSE, in formparse()
845 if(!part) in formparse()
847 part->headers = headers; in formparse()
849 part->config = config->global; in formparse()
854 if(part->size > 0) { in formparse()
859 Curl_safefree(part->data); in formparse()
860 part->data = NULL; in formparse()
861 part->size = -1; in formparse()
875 part = tool_mime_new_data(*mimecurrent, data); in formparse()
876 if(!part) in formparse()
878 part->headers = headers; in formparse()
882 SET_TOOL_MIME_PTR(part, filename); in formparse()
883 SET_TOOL_MIME_PTR(part, type); in formparse()
884 SET_TOOL_MIME_PTR(part, encoder); in formparse()
894 SET_TOOL_MIME_PTR(part, name); in formparse()