Returns contents of scanning guide on 'result' */
| 816 | |
| 817 | /* Returns contents of scanning guide on 'result' */ |
| 818 | static const char *rpc_scan_core(const tal_t *ctx, |
| 819 | struct plugin *plugin, |
| 820 | const char *method, |
| 821 | const struct json_out *params TAKES, |
| 822 | const char *guide, |
| 823 | va_list ap) |
| 824 | { |
| 825 | const jsmntok_t *contents; |
| 826 | const char *p; |
| 827 | |
| 828 | contents = sync_req(tmpctx, plugin, method, params, &p); |
| 829 | return json_scanv(ctx, p, contents, guide, ap); |
| 830 | } |
| 831 | |
| 832 | /* Synchronous routine to send command and extract fields from response */ |
| 833 | void rpc_scan(struct command *cmd, |
no test coverage detected