2 * Copyright (c) 2022 EfficiOS, Inc.
4 * SPDX-License-Identifier: MIT
7 #ifndef BABELTRACE_CPP_COMMON_LIB_STR_HPP
8 #define BABELTRACE_CPP_COMMON_LIB_STR_HPP
10 #include "bt2/message.hpp"
12 namespace bt2_common {
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 bt2_common */
21 #endif /* BABELTRACE_CPP_COMMON_LIB_STR_HPP */