| 2458 | } |
| 2459 | |
| 2460 | bool plugin_single_notify(struct plugin *p, |
| 2461 | const struct jsonrpc_notification *n TAKES) |
| 2462 | { |
| 2463 | bool interested; |
| 2464 | |
| 2465 | if (p->plugin_state == INIT_COMPLETE |
| 2466 | && plugin_subscriptions_contains(p, n->method)) { |
| 2467 | plugin_send(p, json_stream_dup(p, n->stream, p->log)); |
| 2468 | interested = true; |
| 2469 | } else |
| 2470 | interested = false; |
| 2471 | |
| 2472 | tal_free_if_taken(n); |
| 2473 | |
| 2474 | return interested; |
| 2475 | } |
| 2476 | |
| 2477 | void plugins_notify(struct plugins *plugins, |
| 2478 | const struct jsonrpc_notification *n TAKES) |
no test coverage detected