| 1909 | } |
| 1910 | |
| 1911 | struct json_stream *plugin_notify_start(struct command *cmd, const char *method) |
| 1912 | { |
| 1913 | struct json_stream *js = new_json_stream(cmd, NULL, NULL); |
| 1914 | |
| 1915 | json_object_start(js, NULL); |
| 1916 | json_add_string(js, "jsonrpc", "2.0"); |
| 1917 | json_add_string(js, "method", method); |
| 1918 | |
| 1919 | json_object_start(js, "params"); |
| 1920 | json_add_id(js, cmd->id); |
| 1921 | |
| 1922 | return js; |
| 1923 | } |
| 1924 | |
| 1925 | void plugin_notify_end(struct command *cmd, struct json_stream *js) |
| 1926 | { |
no test coverage detected