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,
155 static int writeTime(FILE *stream, const struct writeoutvar *wovar, in writeTime() argument
164 DEBUGASSERT(wovar->writefunc == writeTime); in writeTime()
166 if(wovar->ci) { in writeTime()
167 if(!curl_easy_getinfo(per->curl, wovar->ci, &us)) in writeTime()
179 fprintf(stream, "\"%s\":", wovar->name); in writeTime()
186 fprintf(stream, "\"%s\":null", wovar->name); in writeTime()
282 static int writeString(FILE *stream, const struct writeoutvar *wovar, in writeString() argument
292 DEBUGASSERT(wovar->writefunc == writeString); in writeString()
294 if(wovar->ci) { in writeString()
295 if(wovar->ci == CURLINFO_HTTP_VERSION) { in writeString()
310 if(!curl_easy_getinfo(per->curl, wovar->ci, &strinfo) && strinfo) in writeString()
315 switch(wovar->id) { in writeString()
402 if(!urlpart(per, wovar->id, &strinfo)) { in writeString()
417 fprintf(stream, "\"%s\":", wovar->name); in writeString()
425 fprintf(stream, "\"%s\":null", wovar->name); in writeString()
433 static int writeLong(FILE *stream, const struct writeoutvar *wovar, in writeLong() argument
440 DEBUGASSERT(wovar->writefunc == writeLong); in writeLong()
442 if(wovar->ci) { in writeLong()
443 if(!curl_easy_getinfo(per->curl, wovar->ci, &longinfo)) in writeLong()
447 switch(wovar->id) { in writeLong()
479 fprintf(stream, "\"%s\":%ld", wovar->name, longinfo); in writeLong()
481 if(wovar->id == VAR_HTTP_CODE || wovar->id == VAR_HTTP_CODE_PROXY) in writeLong()
489 fprintf(stream, "\"%s\":null", wovar->name); in writeLong()
495 static int writeOffset(FILE *stream, const struct writeoutvar *wovar, in writeOffset() argument
504 DEBUGASSERT(wovar->writefunc == writeOffset); in writeOffset()
506 if(wovar->ci) { in writeOffset()
507 if(!curl_easy_getinfo(per->curl, wovar->ci, &offinfo)) in writeOffset()
516 fprintf(stream, "\"%s\":", wovar->name); in writeOffset()
522 fprintf(stream, "\"%s\":null", wovar->name); in writeOffset()