Change-Id: I6967d232922c7b5ad6b35cc100becb9ff8a6b968
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8651
CI-Build: Simon Marchi <simon.marchi@efficios.com>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/10838
Tested-by: jenkins <jenkins@lttng.org>
CI-Build: Philippe Proulx <eeppeliteloop@gmail.com>
cfg-logging.hpp \
exc.hpp \
log-cfg.hpp \
cfg-logging.hpp \
exc.hpp \
log-cfg.hpp \
nlohmann/json.hpp \
optional.hpp \
string_view.hpp \
nlohmann/json.hpp \
optional.hpp \
string_view.hpp \
--- /dev/null
+/*
+ * Copyright (c) 2022 EfficiOS, Inc.
+ *
+ * SPDX-License-Identifier: MIT
+ */
+
+#ifndef BABELTRACE_CPP_COMMON_LIB_STR_HPP
+#define BABELTRACE_CPP_COMMON_LIB_STR_HPP
+
+#include "bt2/message.hpp"
+
+namespace bt2_common {
+
+static inline const char *messageTypeStr(const bt2::MessageType type)
+{
+ return bt_common_message_type_string(static_cast<bt_message_type>(type));
+}
+
+} /* namespace bt2_common */
+
+#endif /* BABELTRACE_CPP_COMMON_LIB_STR_HPP */