Add `cpp-common/bt2c/aliases.hpp` to contain common aliases
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 3 May 2024 16:44:12 +0000 (12:44 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 4 Sep 2024 19:05:14 +0000 (15:05 -0400)
The first one is

    using ConstBytes = bt2s::span<const std::uint8_t>;

which we need at various locations.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: Ic6cdaeca4b63c89bea8f51c7bb45f168039bd40f
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12705
CI-Build: Simon Marchi <simon.marchi@efficios.com>
Tested-by: jenkins <jenkins@lttng.org>
src/Makefile.am
src/cpp-common/bt2c/aliases.hpp [new file with mode: 0644]

index fc5d270954c72ced1fbd80d39bfdf81f2df7d2cf..e9c655627bc8677336c4ec1e07a7d4ba1fcb1278 100644 (file)
@@ -158,6 +158,7 @@ cpp_common_libcpp_common_la_SOURCES = \
        cpp-common/bt2/type-traits.hpp \
        cpp-common/bt2/value.hpp \
        cpp-common/bt2/wrap.hpp \
+       cpp-common/bt2c/aliases.hpp \
        cpp-common/bt2c/align.hpp \
        cpp-common/bt2c/bt2-value-from-json-val.cpp \
        cpp-common/bt2c/bt2-value-from-json-val.hpp \
diff --git a/src/cpp-common/bt2c/aliases.hpp b/src/cpp-common/bt2c/aliases.hpp
new file mode 100644 (file)
index 0000000..046c155
--- /dev/null
@@ -0,0 +1,20 @@
+/*
+ * Copyright (c) 2024 EfficiOS, Inc.
+ *
+ * SPDX-License-Identifier: MIT
+ */
+
+#ifndef BABELTRACE_CPP_COMMON_BT2C_ALIASES_HPP
+#define BABELTRACE_CPP_COMMON_BT2C_ALIASES_HPP
+
+#include <cstdint>
+
+#include "cpp-common/bt2s/span.hpp"
+
+namespace bt2c {
+
+using ConstBytes = bt2s::span<const std::uint8_t>;
+
+} /* namespace bt2c */
+
+#endif /* BABELTRACE_CPP_COMMON_BT2C_ALIASES_HPP */
This page took 0.025821 seconds and 4 git commands to generate.