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

Function json_to_subsystem

plugins/autoclean.c:165–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165static bool json_to_subsystem(const char *buffer, const jsmntok_t *tok,
166 struct subsystem_and_variant *sv)
167{
168 *sv = first_sv();
169 do {
170 if (!subsystem_to_str(sv))
171 continue;
172 if (memeqstr(buffer + tok->start, tok->end - tok->start,
173 subsystem_to_str(sv))) {
174 return true;
175 }
176 } while (next_sv(sv));
177 return false;
178}
179
180struct per_variant {
181 /* Who are we? Back pointer, so we can just pass this around */

Callers 1

param_subsystemFunction · 0.85

Calls 4

first_svFunction · 0.85
subsystem_to_strFunction · 0.85
memeqstrFunction · 0.85
next_svFunction · 0.85

Tested by

no test coverage detected