| 2446 | } |
| 2447 | |
| 2448 | bool plugin_single_notify(struct plugin *p, |
| 2449 | const struct jsonrpc_notification *n TAKES) |
| 2450 | { |
| 2451 | bool interested; |
| 2452 | |
| 2453 | if (p->plugin_state == INIT_COMPLETE |
| 2454 | && plugin_subscriptions_contains(p, n->method)) { |
| 2455 | plugin_send(p, json_stream_dup(p, n->stream, p->log)); |
| 2456 | interested = true; |
| 2457 | } else |
| 2458 | interested = false; |
| 2459 | |
| 2460 | tal_free_if_taken(n); |
| 2461 | |
| 2462 | return interested; |
| 2463 | } |
| 2464 | |
| 2465 | void plugins_notify(struct plugins *plugins, |
| 2466 | const struct jsonrpc_notification *n TAKES) |
no test coverage detected