2 * Copyright (c) 2022 EfficiOS, Inc.
4 * SPDX-License-Identifier: MIT
7 #ifndef BABELTRACE_CPP_COMMON_BT2C_LIB_STR_HPP
8 #define BABELTRACE_CPP_COMMON_BT2C_LIB_STR_HPP
10 #include "cpp-common/bt2/message.hpp"
14 static inline const char *messageTypeStr(const bt2::MessageType type)
16 return bt_common_message_type_string(static_cast<bt_message_type>(type));
19 } /* namespace bt2c */
21 #endif /* BABELTRACE_CPP_COMMON_BT2C_LIB_STR_HPP */