cpp-common: add FileUP
[babeltrace.git] / src / cpp-common / lib-str.hpp
CommitLineData
3be0fc3c
SM
1/*
2 * Copyright (c) 2022 EfficiOS, Inc.
3 *
4 * SPDX-License-Identifier: MIT
5 */
6
7#ifndef BABELTRACE_CPP_COMMON_LIB_STR_HPP
8#define BABELTRACE_CPP_COMMON_LIB_STR_HPP
9
10#include "bt2/message.hpp"
11
12namespace bt2_common {
13
14static inline const char *messageTypeStr(const bt2::MessageType type)
15{
16 return bt_common_message_type_string(static_cast<bt_message_type>(type));
17}
18
19} /* namespace bt2_common */
20
21#endif /* BABELTRACE_CPP_COMMON_LIB_STR_HPP */
This page took 0.02596 seconds and 4 git commands to generate.