Lines Matching defs:memory
42 char *memory;
70 * \brief Callback function that stocks in memory the content of the 'job'. Example below :
96 char *content = realloc(download->memory, download->size + realsize + 1);
99 DBG( 1, "Not enough memory (realloc returned NULL)\n");
102 download->memory = content;
103 memcpy(&(download->memory[download->size]), str, realsize);
105 download->memory[download->size] = 0;
153 DBG( 1, "Create NewJob : memory allocation failure\n");
159 DBG( 1, "Create NewJob : memory allocation failure\n");
281 upload->memory = strdup(cap_data);
285 download->memory = malloc(1);
291 curl_easy_setopt(curl_handle, CURLOPT_POSTFIELDS, (const char*)upload->memory);
303 if (download->memory != NULL) {
304 char *tmp_location = strstr(download->memory, "Location:");
330 DBG( 1, "Error : Create NewJob, no location: %s\n", download->memory);
333 free(download->memory);
334 download->memory = NULL;
337 DBG( 1, "Create NewJob : The creation of the failed job: %s\n", download->memory);
339 if (strstr(download->memory, "409 Conflict") != NULL)
342 else if (strstr(download->memory, "503 Service Unavailable") != NULL) {
359 free(download->memory);
360 download->memory = NULL;
367 free(upload->memory);