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

Function plugin_notify_start

plugins/libplugin.c:1911–1923  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1909}
1910
1911struct json_stream *plugin_notify_start(struct command *cmd, const char *method)
1912{
1913 struct json_stream *js = new_json_stream(cmd, NULL, NULL);
1914
1915 json_object_start(js, NULL);
1916 json_add_string(js, "jsonrpc", "2.0");
1917 json_add_string(js, "method", method);
1918
1919 json_object_start(js, "params");
1920 json_add_id(js, cmd->id);
1921
1922 return js;
1923}
1924
1925void plugin_notify_end(struct command *cmd, struct json_stream *js)
1926{

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