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

Function cmd_done

plugins/commando.c:180–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180static struct command_result *cmd_done(struct command *command,
181 const char *buf,
182 const jsmntok_t *obj,
183 struct commando *incoming)
184{
185 struct reply *reply = tal(plugin, struct reply);
186 reply->incoming = tal_steal(reply, incoming);
187 reply->buf = (char *)buf;
188
189 /* result is contents of "error" or "response": we want top-leve
190 * object */
191 reply->off = obj->start;
192 reply->len = obj->end;
193
194 return send_response(command, NULL, NULL, reply);
195}
196
197static void commando_error(struct commando *incoming,
198 int ecode,

Callers

nothing calls this directly

Calls 1

send_responseFunction · 0.85

Tested by

no test coverage detected