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

Function plugin_notify_start

plugins/libplugin.c:1901–1913  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1899}
1900
1901struct json_stream *plugin_notify_start(struct command *cmd, const char *method)
1902{
1903 struct json_stream *js = new_json_stream(cmd, NULL, NULL);
1904
1905 json_object_start(js, NULL);
1906 json_add_string(js, "jsonrpc", "2.0");
1907 json_add_string(js, "method", method);
1908
1909 json_object_start(js, "params");
1910 json_add_id(js, cmd->id);
1911
1912 return js;
1913}
1914
1915void plugin_notify_end(struct command *cmd, struct json_stream *js)
1916{

Callers 2

plugin_notify_messageFunction · 0.85
plugin_notify_progressFunction · 0.85

Calls 4

new_json_streamFunction · 0.85
json_object_startFunction · 0.85
json_add_idFunction · 0.85
json_add_stringFunction · 0.50

Tested by

no test coverage detected