From: Philippe Proulx Date: Fri, 3 May 2024 16:44:12 +0000 (-0400) Subject: Add `cpp-common/bt2c/aliases.hpp` to contain common aliases X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=9d7b288ef209f0157d1cc68057ff6cc9db52d904;p=babeltrace.git Add `cpp-common/bt2c/aliases.hpp` to contain common aliases The first one is using ConstBytes = bt2s::span; which we need at various locations. Signed-off-by: Philippe Proulx Change-Id: Ic6cdaeca4b63c89bea8f51c7bb45f168039bd40f Reviewed-on: https://review.lttng.org/c/babeltrace/+/12705 CI-Build: Simon Marchi Tested-by: jenkins --- diff --git a/src/Makefile.am b/src/Makefile.am index fc5d2709..e9c65562 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -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 index 00000000..046c1554 --- /dev/null +++ b/src/cpp-common/bt2c/aliases.hpp @@ -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 + +#include "cpp-common/bt2s/span.hpp" + +namespace bt2c { + +using ConstBytes = bt2s::span; + +} /* namespace bt2c */ + +#endif /* BABELTRACE_CPP_COMMON_BT2C_ALIASES_HPP */