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

Function fromwire_log_level

common/status_wire.c:16–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16enum log_level fromwire_log_level(const u8 **cursor, size_t *max)
17{
18 u8 l = fromwire_u8(cursor, max);
19 if (l > LOG_LEVEL_MAX) {
20 fromwire_fail(cursor, max);
21 l = LOG_BROKEN;
22 }
23 return l;
24}
25
26void towire_log_level(u8 **pptr, enum log_level level)
27{

Callers

nothing calls this directly

Calls 2

fromwire_u8Function · 0.50
fromwire_failFunction · 0.50

Tested by

no test coverage detected