| 263 | } |
| 264 | |
| 265 | struct io_plan *json_stream_output_(struct json_stream *js, |
| 266 | struct io_conn *conn, |
| 267 | struct io_plan *(*cb)(struct io_conn *conn, |
| 268 | struct json_stream *js, |
| 269 | void *arg), |
| 270 | void *arg) |
| 271 | { |
| 272 | assert(!js->reader); |
| 273 | |
| 274 | js->reader_cb = cb; |
| 275 | js->reader_arg = arg; |
| 276 | |
| 277 | js->len_read = 0; |
| 278 | return json_stream_output_write(conn, js); |
| 279 | } |
| 280 | |
| 281 | void json_add_num(struct json_stream *result, const char *fieldname, unsigned int value) |
| 282 | { |
nothing calls this directly
no test coverage detected