| 1274 | } |
| 1275 | |
| 1276 | struct json_stream *plugin_notify_start(struct command *cmd, const char *method) |
| 1277 | { |
| 1278 | struct json_stream *js = new_json_stream(cmd, NULL, NULL); |
| 1279 | |
| 1280 | json_object_start(js, NULL); |
| 1281 | json_add_string(js, "jsonrpc", "2.0"); |
| 1282 | json_add_string(js, "method", method); |
| 1283 | |
| 1284 | json_object_start(js, "params"); |
| 1285 | json_add_string(js, "id", cmd->id); |
| 1286 | |
| 1287 | return js; |
| 1288 | } |
| 1289 | |
| 1290 | void plugin_notify_end(struct command *cmd, struct json_stream *js) |
| 1291 | { |
no test coverage detected