| 14 | } |
| 15 | |
| 16 | enum 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 | |
| 26 | void towire_log_level(u8 **pptr, enum log_level level) |
| 27 | { |
nothing calls this directly
no test coverage detected