| 1874 | } |
| 1875 | |
| 1876 | struct json_stream *plugin_notification_start_obs(const tal_t *ctx, |
| 1877 | const char *method) |
| 1878 | { |
| 1879 | struct json_stream *js = new_json_stream(ctx, NULL, NULL); |
| 1880 | |
| 1881 | json_object_start(js, NULL); |
| 1882 | json_add_string(js, "jsonrpc", "2.0"); |
| 1883 | json_add_string(js, "method", method); |
| 1884 | |
| 1885 | json_object_start(js, "params"); |
| 1886 | return js; |
| 1887 | } |
| 1888 | |
| 1889 | void plugin_notification_end_obs(struct plugin *plugin, |
| 1890 | struct json_stream *stream STEALS) |
no test coverage detected