| 150 | } |
| 151 | |
| 152 | static bool next_sv(struct subsystem_and_variant *sv) |
| 153 | { |
| 154 | if (sv->variant == NUM_SUBSYSTEM_VARIANTS - 1) { |
| 155 | sv->variant = 0; |
| 156 | if (sv->type == NUM_SUBSYSTEM_TYPES - 1) |
| 157 | return false; |
| 158 | sv->type++; |
| 159 | return true; |
| 160 | } |
| 161 | sv->variant++; |
| 162 | return true; |
| 163 | } |
| 164 | |
| 165 | static bool json_to_subsystem(const char *buffer, const jsmntok_t *tok, |
| 166 | struct subsystem_and_variant *sv) |
no outgoing calls
no test coverage detected