| 198 | } |
| 199 | |
| 200 | void json_add_jsonstr(struct json_stream *js, |
| 201 | const char *fieldname, |
| 202 | const char *jsonstr, |
| 203 | size_t jsonstrlen) |
| 204 | { |
| 205 | char *p; |
| 206 | |
| 207 | p = json_member_direct(js, fieldname, jsonstrlen); |
| 208 | memcpy(p, jsonstr, jsonstrlen); |
| 209 | } |
| 210 | |
| 211 | /* This is where we read the json_stream and write it to conn */ |
| 212 | static struct io_plan *json_stream_output_write(struct io_conn *conn, |
no test coverage detected