| 671 | } |
| 672 | |
| 673 | static void plugin_notification_serialize(struct json_stream *stream, |
| 674 | struct plugin *plugin) |
| 675 | { |
| 676 | json_add_string(stream, "plugin_name", plugin->shortname); |
| 677 | json_add_string(stream, "plugin_path", plugin->cmd); |
| 678 | json_array_start(stream, "methods"); |
| 679 | for (size_t i = 0; i < tal_count(plugin->methods); i++) { |
| 680 | json_add_string(stream, NULL, plugin->methods[i]); |
| 681 | } |
| 682 | json_array_end(stream); |
| 683 | } |
| 684 | |
| 685 | REGISTER_NOTIFICATION(plugin_started); |
| 686 |
no test coverage detected