MCPcopy Create free account
hub / github.com/ElementsProject/lightning / plugin_notification_serialize

Function plugin_notification_serialize

lightningd/notification.c:673–683  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

671}
672
673static 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
685REGISTER_NOTIFICATION(plugin_started);
686

Callers 2

notify_plugin_startedFunction · 0.85
notify_plugin_stoppedFunction · 0.85

Calls 3

json_array_startFunction · 0.85
json_array_endFunction · 0.85
json_add_stringFunction · 0.50

Tested by

no test coverage detected