Lines Matching refs:stream
86 void jsonWriteString(FILE *stream, const char *in, bool lowercase) in jsonWriteString() argument
92 fputc('\"', stream); in jsonWriteString()
94 fputs(curlx_dyn_ptr(&out), stream); in jsonWriteString()
95 fputc('\"', stream); in jsonWriteString()
100 void ourWriteOutJSON(FILE *stream, const struct writeoutvar mappings[], in ourWriteOutJSON() argument
106 fputs("{", stream); in ourWriteOutJSON()
110 mappings[i].writefunc(stream, &mappings[i], per, per_result, true)) in ourWriteOutJSON()
111 fputs(",", stream); in ourWriteOutJSON()
116 fprintf(stream, "\"curl_version\":"); in ourWriteOutJSON()
117 jsonWriteString(stream, curl_version(), FALSE); in ourWriteOutJSON()
118 fprintf(stream, "}"); in ourWriteOutJSON()
126 void headerJSON(FILE *stream, struct per_transfer *per) in headerJSON() argument
131 fputc('{', stream); in headerJSON()
142 fputs(",\n", stream); in headerJSON()
143 jsonWriteString(stream, header->name, TRUE); in headerJSON()
144 fputc(':', stream); in headerJSON()
146 fputc('[', stream); in headerJSON()
148 jsonWriteString(stream, header->value, FALSE); in headerJSON()
151 fputc(',', stream); in headerJSON()
156 fputc(']', stream); in headerJSON()
161 fputs(",\n", stream); in headerJSON()
162 jsonWriteString(stream, header->name, TRUE); in headerJSON()
163 fputc(':', stream); in headerJSON()
164 fputc('[', stream); in headerJSON()
165 jsonWriteString(stream, header->value, FALSE); in headerJSON()
166 fputc(']', stream); in headerJSON()
170 fputs("\n}", stream); in headerJSON()