| 2027 | } |
| 2028 | |
| 2029 | bool 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 | |
| 2045 | void plugins_notify(struct plugins *plugins, |
| 2046 | const struct jsonrpc_notification *n TAKES) |
no test coverage detected