| 94 | } |
| 95 | |
| 96 | static struct command_result *json_connected(struct command *cmd, |
| 97 | const char *buf, |
| 98 | const jsmntok_t *params) |
| 99 | { |
| 100 | const jsmntok_t *connecttok, *idtok; |
| 101 | |
| 102 | connecttok = json_get_member(buf, params, "connect"); |
| 103 | assert(connecttok); |
| 104 | idtok = json_get_member(buf, connecttok, "id"); |
| 105 | assert(idtok); |
| 106 | plugin_log(cmd->plugin, LOG_INFORM, "%s connected", |
| 107 | json_strdup(tmpctx, buf, idtok)); |
| 108 | return notification_handled(cmd); |
| 109 | } |
| 110 | |
| 111 | static struct command_result *json_shutdown(struct command *cmd, |
| 112 | const char *buf, |
nothing calls this directly
no test coverage detected