MCPcopy Create free account
hub / github.com/ElementsProject/lightning / plugin_send

Function plugin_send

lightningd/plugin.c:466–471  ·  view source on GitHub ↗

* Send a JSON-RPC message (request or notification) to the plugin. */

Source from the content-addressed store, hash-verified

464 * Send a JSON-RPC message (request or notification) to the plugin.
465 */
466static void plugin_send(struct plugin *plugin, struct json_stream *stream)
467{
468 tal_steal(plugin, stream);
469 list_add_tail(&plugin->jsouts, &stream->list);
470 io_wake(plugin);
471}
472
473/* Returns the error string, or NULL */
474static const char *plugin_log_handle(struct plugin *plugin,

Callers 3

plugin_single_notifyFunction · 0.85
plugins_notifyFunction · 0.85
plugin_request_sendFunction · 0.85

Calls 1

io_wakeFunction · 0.85

Tested by

no test coverage detected