| 119 | warning_notification_serialize); |
| 120 | |
| 121 | void notify_warning(struct lightningd *ld, struct log_entry *l) |
| 122 | { |
| 123 | void (*serialize)(struct json_stream *, |
| 124 | struct log_entry *) = warning_notification_gen.serialize; |
| 125 | |
| 126 | struct jsonrpc_notification *n |
| 127 | = jsonrpc_notification_start(NULL, warning_notification_gen.topic); |
| 128 | serialize(n->stream, l); |
| 129 | jsonrpc_notification_end(n); |
| 130 | plugins_notify(ld->plugins, take(n)); |
| 131 | } |
| 132 | |
| 133 | static void invoice_payment_notification_serialize(struct json_stream *stream, |
| 134 | struct amount_msat amount, |
no test coverage detected