Returns contents of scanning guide on 'result' */
| 552 | |
| 553 | /* Returns contents of scanning guide on 'result' */ |
| 554 | static const char *rpc_scan_core(const tal_t *ctx, |
| 555 | struct plugin *plugin, |
| 556 | const char *method, |
| 557 | const struct json_out *params TAKES, |
| 558 | const char *guide, |
| 559 | va_list ap) |
| 560 | { |
| 561 | const jsmntok_t *contents; |
| 562 | const char *p; |
| 563 | |
| 564 | contents = sync_req(tmpctx, plugin, method, params, &p); |
| 565 | return json_scanv(ctx, p, contents, guide, ap); |
| 566 | } |
| 567 | |
| 568 | /* Synchronous routine to send command and extract fields from response */ |
| 569 | void rpc_scan(struct plugin *plugin, |
no test coverage detected