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

Function plugin_rpcmethod_cb

lightningd/plugin.c:1210–1221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1208}
1209
1210static void plugin_rpcmethod_cb(const char *buffer,
1211 const jsmntok_t *toks,
1212 const jsmntok_t *idtok,
1213 struct command *cmd)
1214{
1215 struct json_stream *response;
1216
1217 response = json_stream_raw_for_cmd(cmd);
1218 json_stream_forward_change_id(response, buffer, toks, idtok, cmd->id);
1219 json_stream_double_cr(response);
1220 command_raw_complete(cmd, response);
1221}
1222
1223static void plugin_notify_cb(const char *buffer,
1224 const jsmntok_t *methodtok,

Callers

nothing calls this directly

Calls 4

json_stream_raw_for_cmdFunction · 0.85
json_stream_double_crFunction · 0.85
command_raw_completeFunction · 0.85

Tested by

no test coverage detected