Lines Matching refs:data
42 CURLcode Curl_initinfo(struct SessionHandle *data)
44 struct Progress *pro = &data->progress;
45 struct PureInfo *info =&data->info;
76 static CURLcode getinfo_char(struct SessionHandle *data, CURLINFO info,
81 *param_charp = data->change.url?data->change.url:(char *)"";
84 *param_charp = data->info.contenttype;
87 *param_charp = (char *) data->set.private_data;
95 *param_charp = data->state.most_recent_ftp_entrypath;
100 *param_charp = data->info.wouldredirect;
104 *param_charp = data->info.conn_primary_ip;
109 *param_charp = data->info.conn_local_ip;
112 *param_charp = data->set.str[STRING_RTSP_SESSION_ID];
121 static CURLcode getinfo_long(struct SessionHandle *data, CURLINFO info,
133 *param_longp = data->info.httpcode;
136 *param_longp = data->info.httpproxycode;
139 *param_longp = data->info.filetime;
142 *param_longp = data->info.header_size;
145 *param_longp = data->info.request_size;
148 *param_longp = data->set.ssl.certverifyresult;
151 *param_longp = data->set.followlocation;
155 *lptr.to_ulong = data->info.httpauthavail;
159 *lptr.to_ulong = data->info.proxyauthavail;
162 *param_longp = data->state.os_errno;
165 *param_longp = data->info.numconnects;
168 sockfd = Curl_getconnectinfo(data, NULL);
181 *param_longp = data->info.conn_primary_port;
185 *param_longp = data->info.conn_local_port;
189 *param_longp = data->info.timecond ? 1L : 0L;
192 *param_longp = data->state.rtsp_next_client_CSeq;
195 *param_longp = data->state.rtsp_next_server_CSeq;
198 *param_longp = data->state.rtsp_CSeq_recv;
207 static CURLcode getinfo_double(struct SessionHandle *data, CURLINFO info,
212 *param_doublep = data->progress.timespent;
215 *param_doublep = data->progress.t_nslookup;
218 *param_doublep = data->progress.t_connect;
221 *param_doublep = data->progress.t_appconnect;
224 *param_doublep = data->progress.t_pretransfer;
227 *param_doublep = data->progress.t_starttransfer;
230 *param_doublep = (double)data->progress.uploaded;
233 *param_doublep = (double)data->progress.downloaded;
236 *param_doublep = (double)data->progress.dlspeed;
239 *param_doublep = (double)data->progress.ulspeed;
242 *param_doublep = (data->progress.flags & PGRS_DL_SIZE_KNOWN)?
243 (double)data->progress.size_dl:-1;
246 *param_doublep = (data->progress.flags & PGRS_UL_SIZE_KNOWN)?
247 (double)data->progress.size_ul:-1;
250 *param_doublep = data->progress.t_redirect;
259 static CURLcode getinfo_slist(struct SessionHandle *data, CURLINFO info,
269 *param_slistp = Curl_ssl_engines_list(data);
272 *param_slistp = Curl_cookie_list(data);
277 ptr.to_certinfo = &data->info.certs;
284 struct curl_tlssessioninfo *tsi = &data->tsi;
285 struct connectdata *conn = data->easy_conn;
324 /* NOTE: For other SSL backends, it is not immediately clear what data
337 CURLcode Curl_getinfo(struct SessionHandle *data, CURLINFO info, ...)
348 if(!data)
358 ret = getinfo_char(data, info, param_charp);
363 ret = getinfo_long(data, info, param_longp);
368 ret = getinfo_double(data, info, param_doublep);
373 ret = getinfo_slist(data, info, param_slistp);