| 1864 | } |
| 1865 | |
| 1866 | struct json_stream *plugin_notification_start_obs(const tal_t *ctx, |
| 1867 | const char *method) |
| 1868 | { |
| 1869 | struct json_stream *js = new_json_stream(ctx, NULL, NULL); |
| 1870 | |
| 1871 | json_object_start(js, NULL); |
| 1872 | json_add_string(js, "jsonrpc", "2.0"); |
| 1873 | json_add_string(js, "method", method); |
| 1874 | |
| 1875 | json_object_start(js, "params"); |
| 1876 | return js; |
| 1877 | } |
| 1878 | |
| 1879 | void plugin_notification_end_obs(struct plugin *plugin, |
| 1880 | struct json_stream *stream STEALS) |
no test coverage detected