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

Function plugin_single_notify

lightningd/plugin.c:2029–2043  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2027}
2028
2029bool plugin_single_notify(struct plugin *p,
2030 const struct jsonrpc_notification *n TAKES)
2031{
2032 bool interested;
2033 if (plugin_subscriptions_contains(p, n->method)) {
2034 plugin_send(p, json_stream_dup(p, n->stream, p->log));
2035 interested = true;
2036 } else
2037 interested = false;
2038
2039 if (taken(n))
2040 tal_free(n);
2041
2042 return interested;
2043}
2044
2045void plugins_notify(struct plugins *plugins,
2046 const struct jsonrpc_notification *n TAKES)

Callers 2

plugins_notifyFunction · 0.85
notify_plugin_shutdownFunction · 0.85

Calls 5

plugin_sendFunction · 0.85
json_stream_dupFunction · 0.85
takenFunction · 0.85
tal_freeFunction · 0.85

Tested by

no test coverage detected