Returns contents of scanning guide on 'result' */
| 826 | |
| 827 | /* Returns contents of scanning guide on 'result' */ |
| 828 | static const char *rpc_scan_core(const tal_t *ctx, |
| 829 | struct plugin *plugin, |
| 830 | const char *method, |
| 831 | const struct json_out *params TAKES, |
| 832 | const char *guide, |
| 833 | va_list ap) |
| 834 | { |
| 835 | const jsmntok_t *contents; |
| 836 | const char *p; |
| 837 | |
| 838 | contents = sync_req(tmpctx, plugin, method, params, &p); |
| 839 | return json_scanv(ctx, p, contents, guide, ap); |
| 840 | } |
| 841 | |
| 842 | /* Synchronous routine to send command and extract fields from response */ |
| 843 | void rpc_scan(struct command *cmd, |
no test coverage detected