aboutsummaryrefslogtreecommitdiff
path: root/kernel/include
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include')
-rw-r--r--kernel/include/kernel/filesystem/type_registry.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/kernel/include/kernel/filesystem/type_registry.hpp b/kernel/include/kernel/filesystem/type_registry.hpp
index 2f5e708..3be7295 100644
--- a/kernel/include/kernel/filesystem/type_registry.hpp
+++ b/kernel/include/kernel/filesystem/type_registry.hpp
@@ -7,6 +7,7 @@
#include <kstd/memory>
#include <kstd/string>
+#include <cstddef>
#include <span>
#include <string_view>
@@ -35,7 +36,12 @@ namespace kernel::filesystem
//! Get all currently registered type descriptors.
//!
//! @return A span containing all currently registered filesystem type descriptors.
- [[nodiscard]] auto all() const noexcept -> std::span<pointer>;
+ [[nodiscard]] auto all() const noexcept -> std::span<pointer const>;
+
+ //! Get the number of registered filesystem types.
+ //!
+ //! @return The number of filesystem descriptors currently registered with this registry.
+ [[nodiscard]] auto size() const noexcept -> std::size_t;
private:
//! A map from filesystem names (identifiers) to filesystem type descriptors.