Commit | Line | Data |
---|---|---|
3be0fc3c SM |
1 | /* |
2 | * Copyright (c) 2022 EfficiOS, Inc. | |
3 | * | |
4 | * SPDX-License-Identifier: MIT | |
5 | */ | |
6 | ||
094bf3f2 SM |
7 | #ifndef BABELTRACE_CPP_COMMON_BT2C_LIB_STR_HPP |
8 | #define BABELTRACE_CPP_COMMON_BT2C_LIB_STR_HPP | |
3be0fc3c | 9 | |
094bf3f2 | 10 | #include "cpp-common/bt2/message.hpp" |
3be0fc3c | 11 | |
094bf3f2 | 12 | namespace bt2c { |
3be0fc3c SM |
13 | |
14 | static inline const char *messageTypeStr(const bt2::MessageType type) | |
15 | { | |
16 | return bt_common_message_type_string(static_cast<bt_message_type>(type)); | |
17 | } | |
18 | ||
094bf3f2 | 19 | } /* namespace bt2c */ |
3be0fc3c | 20 | |
094bf3f2 | 21 | #endif /* BABELTRACE_CPP_COMMON_BT2C_LIB_STR_HPP */ |