| 318 | } |
| 319 | |
| 320 | static struct command_result *after_staticbackup(struct command *cmd, |
| 321 | const char *buf, |
| 322 | const jsmntok_t *params, |
| 323 | void *cb_arg UNUSED) |
| 324 | { |
| 325 | struct scb_chan **scb_chan; |
| 326 | const jsmntok_t *scbs = json_get_member(buf, params, "scb"); |
| 327 | json_to_scb_chan(buf, scbs, &scb_chan); |
| 328 | plugin_log(cmd->plugin, LOG_INFORM, "Updating the SCB"); |
| 329 | |
| 330 | update_scb(cmd->plugin, scb_chan); |
| 331 | return notification_handled(cmd); |
| 332 | } |
| 333 | |
| 334 | static struct command_result *json_state_changed(struct command *cmd, |
| 335 | const char *buf, |
nothing calls this directly
no test coverage detected