diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-08-18 14:16:02 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-08-18 14:16:02 +0200 |
| commit | c1c2b677dda99bf1713ba28df21fd57d676b8eec (patch) | |
| tree | e801b6bf396751f1145b884ccb1b93448a48abfc /kapi | |
| parent | cd665ec172dadd049e7c1830b070f15b58fb9011 (diff) | |
| download | kernel-c1c2b677dda99bf1713ba28df21fd57d676b8eec.tar.xz kernel-c1c2b677dda99bf1713ba28df21fd57d676b8eec.zip | |
kstd: introduce basic offset type
Diffstat (limited to 'kapi')
| -rw-r--r-- | kapi/kapi/filesystem.hpp | 4 | ||||
| -rw-r--r-- | kapi/kapi/filesystem/seek.hpp | 8 |
2 files changed, 1 insertions, 11 deletions
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<kstd::bytes>; + auto seek(size_t file_descriptor, kstd::offset offset, seek_origin origin) -> kstd::result<kstd::bytes>; //! 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 |
