X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fcpp-common%2Fbt2%2Ftrace-ir.hpp;h=b61394e71d8ff8d641c3aafc9083c5a5ffe68bbe;hb=c802cacb9f0879a42e01575595a75bbefe7d3db9;hp=a7576a56ce62607a6c39c01fa4249b30a999feeb;hpb=69d96f808107fa18e4d2ee49b058dfa324dae506;p=babeltrace.git diff --git a/src/cpp-common/bt2/trace-ir.hpp b/src/cpp-common/bt2/trace-ir.hpp index a7576a56..b61394e7 100644 --- a/src/cpp-common/bt2/trace-ir.hpp +++ b/src/cpp-common/bt2/trace-ir.hpp @@ -7,19 +7,21 @@ #ifndef BABELTRACE_CPP_COMMON_BT2_TRACE_IR_HPP #define BABELTRACE_CPP_COMMON_BT2_TRACE_IR_HPP -#include #include +#include + #include -#include "internal/borrowed-obj.hpp" #include "cpp-common/optional.hpp" #include "cpp-common/string_view.hpp" + #include "clock-class.hpp" #include "clock-snapshot.hpp" #include "field-class.hpp" #include "field.hpp" -#include "value.hpp" +#include "internal/borrowed-obj.hpp" #include "internal/utils.hpp" +#include "value.hpp" namespace bt2 { @@ -788,9 +790,9 @@ public: return nonstd::nullopt; } - void uuid(const std::uint8_t * const uuid) noexcept + void uuid(const bt2_common::UuidView& uuid) noexcept { - bt_trace_set_uuid(this->libObjPtr(), uuid); + bt_trace_set_uuid(this->libObjPtr(), uuid.begin()); } nonstd::optional uuid() const noexcept