From c1c2b677dda99bf1713ba28df21fd57d676b8eec Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Tue, 18 Aug 2026 14:16:02 +0200 Subject: kstd: introduce basic offset type --- kapi/kapi/filesystem.hpp | 4 +--- kapi/kapi/filesystem/seek.hpp | 8 -------- 2 files changed, 1 insertion(+), 11 deletions(-) (limited to 'kapi') diff --git a/kapi/kapi/filesystem.hpp b/kapi/kapi/filesystem.hpp index 78845a00..6a0cd6c2 100644 --- a/kapi/kapi/filesystem.hpp +++ b/kapi/kapi/filesystem.hpp @@ -71,11 +71,9 @@ namespace kapi::filesystem //! //! @param file_descriptor The file descriptor to seek. //! @param offset The offset to seek to, relative to the origin. - //! @param direction The direction to seek towards, relative to the origin. //! @param origin The origing to seek relatively to. //! @return The new position in the file on success, an error code otherwise. - auto seek(size_t file_descriptor, kstd::bytes offset, seek_direction direction, seek_origin origin) - -> kstd::result; + auto seek(size_t file_descriptor, kstd::offset offset, seek_origin origin) -> kstd::result; //! Create a new directory at the specified path. //! diff --git a/kapi/kapi/filesystem/seek.hpp b/kapi/kapi/filesystem/seek.hpp index f1006f31..42bee22d 100644 --- a/kapi/kapi/filesystem/seek.hpp +++ b/kapi/kapi/filesystem/seek.hpp @@ -17,14 +17,6 @@ namespace kapi::filesystem end, }; - enum struct seek_direction - { - //! seek forward from the origin. - forward, - //! seek backward from the origin. - backward, - }; - } // namespace kapi::filesystem #endif \ No newline at end of file -- cgit v1.2.3