2 * Copyright (c) 2023 Philippe Proulx <pproulx@efficios.com>
4 * SPDX-License-Identifier: MIT
7 #ifndef BABELTRACE_CPP_COMMON_BT2_SELF_MESSAGE_ITERATOR_CONFIGURATION_HPP
8 #define BABELTRACE_CPP_COMMON_BT2_SELF_MESSAGE_ITERATOR_CONFIGURATION_HPP
10 #include <babeltrace2/babeltrace.h>
12 #include "borrowed-object.hpp"
16 class SelfMessageIteratorConfiguration final :
17 public BorrowedObject<bt_self_message_iterator_configuration>
20 explicit SelfMessageIteratorConfiguration(const LibObjPtr libObjPtr) noexcept :
21 _ThisBorrowedObject {libObjPtr}
25 void canSeekForward(const bool canSeekForward) const noexcept
27 bt_self_message_iterator_configuration_set_can_seek_forward(
28 this->libObjPtr(), static_cast<bt_bool>(canSeekForward));
34 #endif /* BABELTRACE_CPP_COMMON_BT2_SELF_MESSAGE_ITERATOR_CONFIGURATION_HPP */