Lines Matching refs:data
36 struct callback_data *data,
39 static long file_is_downloaded(struct callback_data *data);
49 /* help data */
50 struct callback_data data = { 0 };
70 /* callback is called after data from the file have been transferred */
76 /* put transfer data into callbacks */
77 curl_easy_setopt(handle, CURLOPT_CHUNK_DATA, &data);
78 curl_easy_setopt(handle, CURLOPT_WRITEDATA, &data);
97 struct callback_data *data,
122 data->output = fopen(finfo->filename, "wb");
123 if(!data->output) {
131 static long file_is_downloaded(struct callback_data *data)
133 if(data->output) {
135 fclose(data->output);
136 data->output = 0x0;
144 struct callback_data *data = cb_data;
146 if(data->output)
147 written = fwrite(buff, size, nmemb, data->output);