Modern notifications X contain an object X */
| 38 | |
| 39 | /* Modern notifications X contain an object X */ |
| 40 | static struct jsonrpc_notification *notify_start(struct lightningd *ld, |
| 41 | const char *name) |
| 42 | { |
| 43 | struct jsonrpc_notification *n; |
| 44 | |
| 45 | /* Optimization: does anyone care? */ |
| 46 | if (!plugins_anyone_cares(ld->plugins, name)) |
| 47 | return NULL; |
| 48 | |
| 49 | n = jsonrpc_notification_start(NULL, name); |
| 50 | json_object_start(n->stream, name); |
| 51 | return n; |
| 52 | } |
| 53 | |
| 54 | static void notify_send(struct lightningd *ld, |
| 55 | struct jsonrpc_notification *n STEALS) |
no test coverage detected