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

Function plugin_send

lightningd/plugin.c:386–391  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

384 * Send a JSON-RPC message (request or notification) to the plugin.
385 */
386static 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 */
394static const char *plugin_log_handle(struct plugin *plugin,

Callers 2

plugin_single_notifyFunction · 0.85
plugin_request_sendFunction · 0.85

Calls 1

io_wakeFunction · 0.85

Tested by

no test coverage detected