cpp-common/bt2/message.hpp \
cpp-common/bt2/optional-borrowed-object.hpp \
cpp-common/bt2/plugin-dev.hpp \
+ cpp-common/bt2/plugin-set.hpp \
cpp-common/bt2/plugin.hpp \
cpp-common/bt2/private-query-executor.hpp \
cpp-common/bt2/query-executor.hpp \
--- /dev/null
+/*
+ * Copyright (c) 2024 EfficiOS, Inc.
+ *
+ * SPDX-License-Identifier: MIT
+ */
+
+#ifndef BABELTRACE_CPP_COMMON_BT2_PLUGIN_SET_HPP
+#define BABELTRACE_CPP_COMMON_BT2_PLUGIN_SET_HPP
+
+#include <cstdint>
+
+#include <babeltrace2/babeltrace.h>
+
+#include "borrowed-object.hpp"
+#include "shared-object.hpp"
+
+namespace bt2 {
+namespace internal {
+
+struct PluginSetRefFuncs
+{
+ static void get(const bt_plugin_set * const libObjPtr) noexcept
+ {
+ bt_plugin_set_get_ref(libObjPtr);
+ }
+
+ static void put(const bt_plugin_set * const libObjPtr) noexcept
+ {
+ bt_plugin_set_put_ref(libObjPtr);
+ }
+};
+
+} /* namespace internal */
+
+class ConstPluginSet final : public BorrowedObject<const bt_plugin_set>
+{
+public:
+ using Shared = SharedObject<ConstPluginSet, const bt_plugin_set, internal::PluginSetRefFuncs>;
+
+ explicit ConstPluginSet(const bt_plugin_set * const plugin_set) :
+ _ThisBorrowedObject {plugin_set}
+ {
+ }
+
+ std::uint64_t length() const noexcept
+ {
+ return bt_plugin_set_get_plugin_count(this->libObjPtr());
+ }
+};
+
+} /* namespace bt2 */
+
+#endif /* BABELTRACE_CPP_COMMON_BT2_PLUGIN_SET_HPP */
#include <babeltrace2/babeltrace.h>
#include "common/common.h"
-#include "cpp-common/bt2/borrowed-object.hpp"
-#include "cpp-common/bt2/exc.hpp"
-#include "cpp-common/bt2/shared-object.hpp"
#include "cpp-common/bt2c/c-string-view.hpp"
-namespace bt2 {
-namespace internal {
-
-struct PluginSetRefFuncs
-{
- static void get(const bt_plugin_set * const libObjPtr) noexcept
- {
- bt_plugin_set_get_ref(libObjPtr);
- }
-
- static void put(const bt_plugin_set * const libObjPtr) noexcept
- {
- bt_plugin_set_put_ref(libObjPtr);
- }
-};
-
-} /* namespace internal */
+#include "exc.hpp"
+#include "plugin-set.hpp"
-class ConstPluginSet final : public BorrowedObject<const bt_plugin_set>
-{
-public:
- using Shared = SharedObject<ConstPluginSet, const bt_plugin_set, internal::PluginSetRefFuncs>;
-
- explicit ConstPluginSet(const bt_plugin_set * const plugin_set) :
- _ThisBorrowedObject {plugin_set}
- {
- }
-
- std::uint64_t length() const noexcept
- {
- return bt_plugin_set_get_plugin_count(this->libObjPtr());
- }
-};
+namespace bt2 {
inline ConstPluginSet::Shared findAllPluginsFromDir(const bt2c::CStringView path,
const bool recurse, const bool failOnLoadError)
* Copyright (C) 2024 EfficiOS, Inc.
*/
-#include <cpp-common/bt2/plugin.hpp>
-
-#include <cpp-common/vendor/fmt/format.h>
-
#include <babeltrace2/babeltrace.h>
+#include "common/common.h"
+#include "cpp-common/bt2/exc.hpp"
+#include "cpp-common/bt2/plugin.hpp"
#include "cpp-common/bt2c/c-string-view.hpp"
+#include "cpp-common/vendor/fmt/core.h"
#include "tap/tap.h"