]>
Commit | Line | Data |
---|---|---|
db9ecf05 | 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
ff7dad48 ZJS |
2 | |
3 | #pragma once | |
4 | ||
0d1d512f ZJS |
5 | #include <stdbool.h> |
6 | ||
7 | #include "sd-id128.h" | |
8 | ||
a19fdd66 LP |
9 | typedef enum Id128PrettyPrintMode { |
10 | ID128_PRINT_ID128, | |
11 | ID128_PRINT_UUID, | |
12 | ID128_PRINT_PRETTY, | |
13 | _ID128_PRETTY_PRINT_MODE_MAX, | |
2d93c20e | 14 | _ID128_PRETTY_PRINT_MODE_INVALID = -EINVAL, |
a19fdd66 LP |
15 | } Id128PrettyPrintMode; |
16 | ||
dc972b07 | 17 | int id128_pretty_print_sample(const char *name, sd_id128_t id); |
a19fdd66 LP |
18 | int id128_pretty_print(sd_id128_t id, Id128PrettyPrintMode mode); |
19 | int id128_print_new(Id128PrettyPrintMode mode); |