MCPcopy Create free account
hub / github.com/ElementsProject/lightning / next_sv

Function next_sv

plugins/autoclean.c:152–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152static 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
165static bool json_to_subsystem(const char *buffer, const jsmntok_t *tok,
166 struct subsystem_and_variant *sv)

Callers 4

json_to_subsystemFunction · 0.85
clean_finishedFunction · 0.85
json_success_subsystemsFunction · 0.85
initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected