* Send a JSON-RPC message (request or notification) to the plugin. */
| 384 | * Send a JSON-RPC message (request or notification) to the plugin. |
| 385 | */ |
| 386 | static void plugin_send(struct plugin *plugin, struct json_stream *stream) |
| 387 | { |
| 388 | tal_steal(plugin->js_arr, stream); |
| 389 | tal_arr_expand(&plugin->js_arr, stream); |
| 390 | io_wake(plugin); |
| 391 | } |
| 392 | |
| 393 | /* Returns the error string, or NULL */ |
| 394 | static const char *plugin_log_handle(struct plugin *plugin, |
no test coverage detected