Lines Matching refs:data
30 struct callback_data *data,
33 static long file_is_downloaded(struct callback_data *data);
45 /* help data */
46 struct callback_data data = { 0 };
66 /* callback is called after data from the file have been transferred */
72 /* put transfer data into callbacks */
73 curl_easy_setopt(handle, CURLOPT_CHUNK_DATA, &data);
74 curl_easy_setopt(handle, CURLOPT_WRITEDATA, &data);
93 struct callback_data *data,
118 data->output = fopen(finfo->filename, "w");
119 if(!data->output) {
127 static long file_is_downloaded(struct callback_data *data)
129 if(data->output) {
131 fclose(data->output);
132 data->output = 0x0;
140 struct callback_data *data = cb_data;
142 if(data->output)
143 written = fwrite(buff, size, nmemb, data->output);