| 2043 | } |
| 2044 | |
| 2045 | void plugins_notify(struct plugins *plugins, |
| 2046 | const struct jsonrpc_notification *n TAKES) |
| 2047 | { |
| 2048 | struct plugin *p; |
| 2049 | |
| 2050 | if (taken(n)) |
| 2051 | tal_steal(tmpctx, n); |
| 2052 | |
| 2053 | /* If we're shutting down, ld->plugins will be NULL */ |
| 2054 | if (plugins) { |
| 2055 | list_for_each(&plugins->plugins, p, list) { |
| 2056 | plugin_single_notify(p, n); |
| 2057 | } |
| 2058 | } |
| 2059 | } |
| 2060 | |
| 2061 | static void destroy_request(struct jsonrpc_request *req, |
| 2062 | struct plugin *plugin) |
no test coverage detected