Lines Matching refs:data
47 CURLcode Curl_initinfo(struct Curl_easy *data) in Curl_initinfo() argument
49 struct Progress *pro = &data->progress; in Curl_initinfo()
50 struct PureInfo *info = &data->info; in Curl_initinfo()
89 Curl_ssl_free_certinfo(data); in Curl_initinfo()
94 static CURLcode getinfo_char(struct Curl_easy *data, CURLINFO info, in getinfo_char() argument
99 *param_charp = data->state.url ? data->state.url : (char *)""; in getinfo_char()
102 const char *m = data->set.str[STRING_CUSTOMREQUEST]; in getinfo_char()
104 if(data->set.opt_no_body) in getinfo_char()
108 switch(data->state.httpreq) { in getinfo_char()
132 *param_charp = data->info.contenttype; in getinfo_char()
135 *param_charp = (char *) data->set.private_data; in getinfo_char()
143 *param_charp = data->state.most_recent_ftp_entrypath; in getinfo_char()
148 *param_charp = data->info.wouldredirect; in getinfo_char()
152 *param_charp = data->state.referer; in getinfo_char()
156 *param_charp = data->info.primary.remote_ip; in getinfo_char()
161 *param_charp = data->info.primary.local_ip; in getinfo_char()
165 *param_charp = data->set.str[STRING_RTSP_SESSION_ID]; in getinfo_char()
171 *param_charp = data->info.conn_scheme; in getinfo_char()
194 static CURLcode getinfo_long(struct Curl_easy *data, CURLINFO info, in getinfo_long() argument
233 *param_longp = data->info.httpcode; in getinfo_long()
236 *param_longp = data->info.httpproxycode; in getinfo_long()
239 if(data->info.filetime > LONG_MAX) in getinfo_long()
241 else if(data->info.filetime < LONG_MIN) in getinfo_long()
244 *param_longp = (long)data->info.filetime; in getinfo_long()
247 *param_longp = (long)data->info.header_size; in getinfo_long()
250 *param_longp = (long)data->info.request_size; in getinfo_long()
253 *param_longp = data->set.ssl.certverifyresult; in getinfo_long()
257 *param_longp = data->set.proxy_ssl.certverifyresult; in getinfo_long()
263 *param_longp = data->state.followlocation; in getinfo_long()
267 *lptr.to_ulong = data->info.httpauthavail; in getinfo_long()
271 *lptr.to_ulong = data->info.proxyauthavail; in getinfo_long()
274 *param_longp = data->state.os_errno; in getinfo_long()
277 *param_longp = data->info.numconnects; in getinfo_long()
280 sockfd = Curl_getconnectinfo(data, NULL); in getinfo_long()
293 *param_longp = data->info.primary.remote_port; in getinfo_long()
297 *param_longp = data->info.primary.local_port; in getinfo_long()
300 *param_longp = (long)data->info.pxcode; in getinfo_long()
303 if(data->info.httpcode == 304) in getinfo_long()
307 *param_longp = data->info.timecond ? 1L : 0L; in getinfo_long()
311 *param_longp = data->state.rtsp_next_client_CSeq; in getinfo_long()
314 *param_longp = data->state.rtsp_next_server_CSeq; in getinfo_long()
317 *param_longp = data->state.rtsp_CSeq_recv; in getinfo_long()
327 switch(data->info.httpversion) { in getinfo_long()
346 *param_longp = (long)data->info.conn_protocol; in getinfo_long()
353 data->info.used_proxy in getinfo_long()
366 static CURLcode getinfo_offt(struct Curl_easy *data, CURLINFO info, in getinfo_offt() argument
393 *param_offt = (curl_off_t)data->info.filetime; in getinfo_offt()
396 *param_offt = data->progress.ul.cur_size; in getinfo_offt()
399 *param_offt = data->progress.dl.cur_size; in getinfo_offt()
402 *param_offt = data->progress.dl.speed; in getinfo_offt()
405 *param_offt = data->progress.ul.speed; in getinfo_offt()
408 *param_offt = (data->progress.flags & PGRS_DL_SIZE_KNOWN) ? in getinfo_offt()
409 data->progress.dl.total_size : -1; in getinfo_offt()
412 *param_offt = (data->progress.flags & PGRS_UL_SIZE_KNOWN) ? in getinfo_offt()
413 data->progress.ul.total_size : -1; in getinfo_offt()
416 *param_offt = data->progress.timespent; in getinfo_offt()
419 *param_offt = data->progress.t_nslookup; in getinfo_offt()
422 *param_offt = data->progress.t_connect; in getinfo_offt()
425 *param_offt = data->progress.t_appconnect; in getinfo_offt()
428 *param_offt = data->progress.t_pretransfer; in getinfo_offt()
431 *param_offt = data->progress.t_posttransfer; in getinfo_offt()
434 *param_offt = data->progress.t_starttransfer; in getinfo_offt()
437 *param_offt = data->progress.t_postqueue; in getinfo_offt()
440 *param_offt = data->progress.t_redirect; in getinfo_offt()
443 *param_offt = data->info.retry_after; in getinfo_offt()
446 *param_offt = data->id; in getinfo_offt()
449 *param_offt = data->conn ? in getinfo_offt()
450 data->conn->connection_id : data->state.recent_conn_id; in getinfo_offt()
453 *param_offt = data->progress.earlydata_sent; in getinfo_offt()
462 static CURLcode getinfo_double(struct Curl_easy *data, CURLINFO info, in getinfo_double() argument
488 *param_doublep = DOUBLE_SECS(data->progress.timespent); in getinfo_double()
491 *param_doublep = DOUBLE_SECS(data->progress.t_nslookup); in getinfo_double()
494 *param_doublep = DOUBLE_SECS(data->progress.t_connect); in getinfo_double()
497 *param_doublep = DOUBLE_SECS(data->progress.t_appconnect); in getinfo_double()
500 *param_doublep = DOUBLE_SECS(data->progress.t_pretransfer); in getinfo_double()
503 *param_doublep = DOUBLE_SECS(data->progress.t_starttransfer); in getinfo_double()
506 *param_doublep = (double)data->progress.ul.cur_size; in getinfo_double()
509 *param_doublep = (double)data->progress.dl.cur_size; in getinfo_double()
512 *param_doublep = (double)data->progress.dl.speed; in getinfo_double()
515 *param_doublep = (double)data->progress.ul.speed; in getinfo_double()
518 *param_doublep = (data->progress.flags & PGRS_DL_SIZE_KNOWN) ? in getinfo_double()
519 (double)data->progress.dl.total_size : -1; in getinfo_double()
522 *param_doublep = (data->progress.flags & PGRS_UL_SIZE_KNOWN) ? in getinfo_double()
523 (double)data->progress.ul.total_size : -1; in getinfo_double()
526 *param_doublep = DOUBLE_SECS(data->progress.t_redirect); in getinfo_double()
536 static CURLcode getinfo_slist(struct Curl_easy *data, CURLINFO info, in getinfo_slist() argument
546 *param_slistp = Curl_ssl_engines_list(data); in getinfo_slist()
549 *param_slistp = Curl_cookie_list(data); in getinfo_slist()
554 ptr.to_certinfo = &data->info.certs; in getinfo_slist()
562 struct curl_tlssessioninfo *tsi = &data->tsi; in getinfo_slist()
564 struct connectdata *conn = data->conn; in getinfo_slist()
573 tsi->internals = Curl_ssl_get_internals(data, FIRSTSOCKET, info, 0); in getinfo_slist()
585 static CURLcode getinfo_socket(struct Curl_easy *data, CURLINFO info, in getinfo_socket() argument
590 *param_socketp = Curl_getconnectinfo(data, NULL); in getinfo_socket()
599 CURLcode Curl_getinfo(struct Curl_easy *data, CURLINFO info, ...) in Curl_getinfo() argument
611 if(!data) in Curl_getinfo()
621 result = getinfo_char(data, info, param_charp); in Curl_getinfo()
626 result = getinfo_long(data, info, param_longp); in Curl_getinfo()
631 result = getinfo_double(data, info, param_doublep); in Curl_getinfo()
636 result = getinfo_offt(data, info, param_offt); in Curl_getinfo()
641 result = getinfo_slist(data, info, param_slistp); in Curl_getinfo()
646 result = getinfo_socket(data, info, param_socketp); in Curl_getinfo()