treewide: Codify memory pinning
This enforces movability constraints.
Change-Id: I49dbd43a791c1d70eb7e97f30708231c053901d9
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/src/inventory_mac.hpp b/src/inventory_mac.hpp
index 72b312d..1b6aa8b 100644
--- a/src/inventory_mac.hpp
+++ b/src/inventory_mac.hpp
@@ -1,6 +1,7 @@
#pragma once
#include <memory>
#include <sdbusplus/bus.hpp>
+#include <stdplus/pinned.hpp>
namespace phosphor::network
{
@@ -14,7 +15,8 @@
{
virtual ~Runtime() = default;
};
-std::unique_ptr<Runtime> watch(sdbusplus::bus_t& bus, Manager& m);
+std::unique_ptr<Runtime> watch(stdplus::PinnedRef<sdbusplus::bus_t> bus,
+ stdplus::PinnedRef<Manager> m);
} // namespace inventory
} // namespace phosphor::network