mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 03:29:49 +00:00
LibCore+Everywhere: Move SeekMode out of IODevice
This commit is contained in:
parent
a91a49337c
commit
1ae8775a1b
Notes:
sideshowbarker
2024-07-18 18:18:30 +09:00
Author: https://github.com/alimpfard
Commit: 1ae8775a1b
Pull-request: https://github.com/SerenityOS/serenity/pull/7056
5 changed files with 10 additions and 10 deletions
|
@ -44,6 +44,12 @@ enum class OpenMode : unsigned {
|
|||
MustBeNew = 16,
|
||||
};
|
||||
|
||||
enum class SeekMode {
|
||||
SetPosition,
|
||||
FromCurrentPosition,
|
||||
FromEndPosition,
|
||||
};
|
||||
|
||||
AK_ENUM_BITWISE_OPERATORS(OpenMode)
|
||||
|
||||
class IODevice : public Object {
|
||||
|
@ -76,12 +82,6 @@ public:
|
|||
|
||||
bool can_read() const;
|
||||
|
||||
enum class SeekMode {
|
||||
SetPosition,
|
||||
FromCurrentPosition,
|
||||
FromEndPosition,
|
||||
};
|
||||
|
||||
bool seek(i64, SeekMode = SeekMode::SetPosition, off_t* = nullptr);
|
||||
|
||||
virtual bool open(OpenMode) = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue