| 178 | } |
| 179 | |
| 180 | static 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 | |
| 197 | static void commando_error(struct commando *incoming, |
| 198 | int ecode, |
nothing calls this directly
no test coverage detected