| 51 | } |
| 52 | |
| 53 | static struct command_result *json_connected(struct command *cmd, |
| 54 | const char *buf, |
| 55 | const jsmntok_t *params) |
| 56 | { |
| 57 | const jsmntok_t *idtok = json_get_member(buf, params, "id"); |
| 58 | assert(idtok); |
| 59 | plugin_log(cmd->plugin, LOG_INFORM, "%s connected", |
| 60 | json_strdup(tmpctx, buf, idtok)); |
| 61 | return notification_handled(cmd); |
| 62 | } |
| 63 | |
| 64 | static struct command_result *json_shutdown(struct command *cmd, |
| 65 | const char *buf, |
nothing calls this directly
no test coverage detected