| 1337 | } |
| 1338 | |
| 1339 | void jsonrpc_notification_end(struct jsonrpc_notification *n) |
| 1340 | { |
| 1341 | json_object_end(n->stream); /* closes '.params' */ |
| 1342 | json_object_end(n->stream); /* closes '.' */ |
| 1343 | |
| 1344 | /* We guarantee to have \n\n at end of each response. */ |
| 1345 | json_stream_append(n->stream, "\n\n", strlen("\n\n")); |
| 1346 | } |
| 1347 | |
| 1348 | struct jsonrpc_request *jsonrpc_request_start_( |
| 1349 | const tal_t *ctx, const char *method, |
no test coverage detected