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

Function get_beglist

plugins/libplugin.c:1501–1520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1499}
1500
1501static struct command_result *get_beglist(struct command *aux_cmd,
1502 const char *method,
1503 const char *buf,
1504 const jsmntok_t *result,
1505 void *unused)
1506{
1507 struct plugin *plugin = aux_cmd->plugin;
1508 const char *err;
1509
1510 err = json_scan(tmpctx, buf, result,
1511 "{configs:{i-promise-to-fix-broken-api-user:{values_str:%}}}",
1512 JSON_SCAN_TAL(plugin, json_to_apilist, &plugin->beglist));
1513 if (err)
1514 plugin_err(aux_cmd->plugin, "bad listconfigs '%.*s': %s",
1515 json_tok_full_len(result),
1516 json_tok_full(buf, result),
1517 err);
1518
1519 return aux_command_done(aux_cmd);
1520}
1521
1522static struct command_result *handle_init(struct command *cmd,
1523 const char *buf,

Callers

nothing calls this directly

Calls 5

aux_command_doneFunction · 0.85
plugin_errFunction · 0.70
json_scanFunction · 0.50
json_tok_full_lenFunction · 0.50
json_tok_fullFunction · 0.50

Tested by

no test coverage detected