]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/shared/id128-print.h
Merge pull request #18007 from fw-strlen/ipv6_masq_and_dnat
[thirdparty/systemd.git] / src / shared / id128-print.h
CommitLineData
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
9typedef 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 17int id128_pretty_print_sample(const char *name, sd_id128_t id);
a19fdd66
LP
18int id128_pretty_print(sd_id128_t id, Id128PrettyPrintMode mode);
19int id128_print_new(Id128PrettyPrintMode mode);