| 73 | } |
| 74 | |
| 75 | static struct command_result * |
| 76 | json_peer_connected(struct command *cmd, |
| 77 | const char *buf, |
| 78 | const jsmntok_t *params) |
| 79 | { |
| 80 | const jsmntok_t *peertok, *idtok; |
| 81 | struct json_stream *response; |
| 82 | |
| 83 | peertok = json_get_member(buf, params, "peer"); |
| 84 | assert(peertok); |
| 85 | idtok = json_get_member(buf, peertok, "id"); |
| 86 | assert(idtok); |
| 87 | plugin_log(cmd->plugin, LOG_INFORM, "%s peer_connected", |
| 88 | json_strdup(tmpctx, buf, idtok)); |
| 89 | |
| 90 | response = jsonrpc_stream_success(cmd); |
| 91 | json_add_string(response, "result", "continue"); |
| 92 | |
| 93 | return command_finished(cmd, response); |
| 94 | } |
| 95 | |
| 96 | static struct command_result *json_connected(struct command *cmd, |
| 97 | const char *buf, |
nothing calls this directly
no test coverage detected