| 775 | } |
| 776 | |
| 777 | static struct command_result *json_autoclean_once(struct command *cmd, |
| 778 | const char *buffer, |
| 779 | const jsmntok_t *params) |
| 780 | { |
| 781 | struct subsystem_and_variant *sv; |
| 782 | u64 *age; |
| 783 | struct clean_info *cinfo; |
| 784 | |
| 785 | if (!param(cmd, buffer, params, |
| 786 | p_req("subsystem", param_subsystem, &sv), |
| 787 | p_req("age", param_u64_nonzero, &age), |
| 788 | NULL)) |
| 789 | return command_param_failed(); |
| 790 | |
| 791 | cinfo = new_clean_info(cmd, cmd); |
| 792 | get_per_variant(cinfo, sv)->age = *age; |
| 793 | |
| 794 | return start_clean(cinfo); |
| 795 | } |
| 796 | |
| 797 | static void memleak_mark_timer_cinfo(struct plugin *plugin, |
| 798 | struct htable *memtable) |
nothing calls this directly
no test coverage detected