| 124 | REGISTER_NOTIFICATION(warning); |
| 125 | |
| 126 | void notify_warning(struct lightningd *ld, |
| 127 | enum log_level level, |
| 128 | struct timeabs time, |
| 129 | const char *source, |
| 130 | const char *logmsg) |
| 131 | { |
| 132 | struct jsonrpc_notification *n = notify_start(ld, "warning"); |
| 133 | if (!n) |
| 134 | return; |
| 135 | warning_notification_serialize(n->stream, level, time, source, logmsg); |
| 136 | notify_send(ld, n); |
| 137 | } |
| 138 | |
| 139 | static void custommsg_notification_serialize(struct json_stream *stream, |
| 140 | const struct node_id *peer_id, |
no test coverage detected