| 1899 | } |
| 1900 | |
| 1901 | struct json_stream *plugin_notify_start(struct command *cmd, const char *method) |
| 1902 | { |
| 1903 | struct json_stream *js = new_json_stream(cmd, NULL, NULL); |
| 1904 | |
| 1905 | json_object_start(js, NULL); |
| 1906 | json_add_string(js, "jsonrpc", "2.0"); |
| 1907 | json_add_string(js, "method", method); |
| 1908 | |
| 1909 | json_object_start(js, "params"); |
| 1910 | json_add_id(js, cmd->id); |
| 1911 | |
| 1912 | return js; |
| 1913 | } |
| 1914 | |
| 1915 | void plugin_notify_end(struct command *cmd, struct json_stream *js) |
| 1916 | { |
no test coverage detected