Lines Matching refs:wovar
34 static int writeTime(FILE *stream, const struct writeoutvar *wovar,
38 static int writeString(FILE *stream, const struct writeoutvar *wovar,
42 static int writeLong(FILE *stream, const struct writeoutvar *wovar,
46 static int writeOffset(FILE *stream, const struct writeoutvar *wovar,
156 static int writeTime(FILE *stream, const struct writeoutvar *wovar, in writeTime() argument
165 DEBUGASSERT(wovar->writefunc == writeTime); in writeTime()
167 if(wovar->ci) { in writeTime()
168 if(!curl_easy_getinfo(per->curl, wovar->ci, &us)) in writeTime()
180 fprintf(stream, "\"%s\":", wovar->name); in writeTime()
187 fprintf(stream, "\"%s\":null", wovar->name); in writeTime()
283 static int writeString(FILE *stream, const struct writeoutvar *wovar, in writeString() argument
293 DEBUGASSERT(wovar->writefunc == writeString); in writeString()
295 if(wovar->ci) { in writeString()
296 if(wovar->ci == CURLINFO_HTTP_VERSION) { in writeString()
311 if(!curl_easy_getinfo(per->curl, wovar->ci, &strinfo) && strinfo) in writeString()
316 switch(wovar->id) { in writeString()
403 if(!urlpart(per, wovar->id, &strinfo)) { in writeString()
418 fprintf(stream, "\"%s\":", wovar->name); in writeString()
426 fprintf(stream, "\"%s\":null", wovar->name); in writeString()
434 static int writeLong(FILE *stream, const struct writeoutvar *wovar, in writeLong() argument
441 DEBUGASSERT(wovar->writefunc == writeLong); in writeLong()
443 if(wovar->ci) { in writeLong()
444 if(!curl_easy_getinfo(per->curl, wovar->ci, &longinfo)) in writeLong()
448 switch(wovar->id) { in writeLong()
480 fprintf(stream, "\"%s\":%ld", wovar->name, longinfo); in writeLong()
482 if(wovar->id == VAR_HTTP_CODE || wovar->id == VAR_HTTP_CODE_PROXY) in writeLong()
490 fprintf(stream, "\"%s\":null", wovar->name); in writeLong()
496 static int writeOffset(FILE *stream, const struct writeoutvar *wovar, in writeOffset() argument
505 DEBUGASSERT(wovar->writefunc == writeOffset); in writeOffset()
507 if(wovar->ci) { in writeOffset()
508 if(!curl_easy_getinfo(per->curl, wovar->ci, &offinfo)) in writeOffset()
517 fprintf(stream, "\"%s\":", wovar->name); in writeOffset()
523 fprintf(stream, "\"%s\":null", wovar->name); in writeOffset()