aboutsummaryrefslogtreecommitdiff
path: root/kapi
diff options
context:
space:
mode:
Diffstat (limited to 'kapi')
-rw-r--r--kapi/include/kapi/devices/bus.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/kapi/include/kapi/devices/bus.hpp b/kapi/include/kapi/devices/bus.hpp
index cf8d090..0b25ac1 100644
--- a/kapi/include/kapi/devices/bus.hpp
+++ b/kapi/include/kapi/devices/bus.hpp
@@ -4,6 +4,7 @@
#include "kapi/devices/device.hpp"
#include <kstd/memory>
+#include <kstd/observer_ptr>
#include <kstd/string>
#include <kstd/vector>
@@ -33,7 +34,7 @@ namespace kapi::devices
//! Get a list of all child devices attached to this bus.
//!
//! @return A reference to list of child devices of this bus.
- [[nodiscard]] virtual auto children() const -> kstd::vector<device *> const & = 0;
+ [[nodiscard]] virtual auto children() const -> kstd::vector<kstd::observer_ptr<device>> const & = 0;
};
} // namespace kapi::devices