| 266 | channel_state_changed_notification_serialize) |
| 267 | |
| 268 | void notify_channel_state_changed(struct lightningd *ld, |
| 269 | struct node_id *peer_id, |
| 270 | struct channel_id *cid, |
| 271 | struct short_channel_id *scid, |
| 272 | struct timeabs *timestamp, |
| 273 | enum channel_state old_state, |
| 274 | enum channel_state new_state, |
| 275 | enum state_change cause, |
| 276 | char *message) |
| 277 | { |
| 278 | void (*serialize)(struct json_stream *, |
| 279 | struct node_id *, |
| 280 | struct channel_id *, |
| 281 | struct short_channel_id *, |
| 282 | struct timeabs *timestamp, |
| 283 | enum channel_state, |
| 284 | enum channel_state, |
| 285 | enum state_change, |
| 286 | char *message) = channel_state_changed_notification_gen.serialize; |
| 287 | |
| 288 | struct jsonrpc_notification *n |
| 289 | = jsonrpc_notification_start(NULL, channel_state_changed_notification_gen.topic); |
| 290 | serialize(n->stream, peer_id, cid, scid, timestamp, old_state, new_state, cause, message); |
| 291 | jsonrpc_notification_end(n); |
| 292 | plugins_notify(ld->plugins, take(n)); |
| 293 | } |
| 294 | |
| 295 | static void forward_event_notification_serialize(struct json_stream *stream, |
| 296 | const struct htlc_in *in, |
no test coverage detected