| 181 | invoice_creation_notification_serialize) |
| 182 | |
| 183 | void notify_invoice_creation(struct lightningd *ld, struct amount_msat *amount, |
| 184 | struct preimage preimage, |
| 185 | const struct json_escape *label) |
| 186 | { |
| 187 | void (*serialize)(struct json_stream *, |
| 188 | struct amount_msat *, |
| 189 | struct preimage, |
| 190 | const struct json_escape *) = invoice_creation_notification_gen.serialize; |
| 191 | |
| 192 | struct jsonrpc_notification *n |
| 193 | = jsonrpc_notification_start(NULL, invoice_creation_notification_gen.topic); |
| 194 | serialize(n->stream, amount, preimage, label); |
| 195 | jsonrpc_notification_end(n); |
| 196 | plugins_notify(ld->plugins, take(n)); |
| 197 | } |
| 198 | |
| 199 | /* FIXME: Use outpoint here! */ |
| 200 | static void channel_opened_notification_serialize(struct json_stream *stream, |
no test coverage detected