Commit | Line | Data |
---|---|---|
7cf8258b SM |
1 | /* |
2 | * Copyright (c) 2024 EfficiOS, inc. | |
3 | * | |
4 | * SPDX-License-Identifier: MIT | |
5 | */ | |
6 | ||
7 | #include "common/common.h" | |
8 | #include "cpp-common/bt2/message.hpp" | |
9 | #include "cpp-common/vendor/fmt/format.h" /* IWYU pragma: keep */ | |
10 | ||
8f7f6134 SM |
11 | #include "uuid.hpp" |
12 | ||
7cf8258b SM |
13 | namespace bt2 { |
14 | ||
15 | inline const char *format_as(const MessageType type) | |
16 | { | |
17 | return bt_common_message_type_string(static_cast<bt_message_type>(type)); | |
18 | } | |
19 | ||
20 | } /* namespace bt2 */ | |
e05975eb SM |
21 | |
22 | namespace bt2c { | |
23 | ||
24 | inline std::string format_as(const UuidView uuid) | |
25 | { | |
26 | return uuid.str(); | |
27 | } | |
28 | ||
29 | } /* namespace bt2c */ |