mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:47:35 +00:00
LibCore+AK: Move MappedFile from AK to LibCore
MappedFile is strictly a userspace thing, so it doesn't belong in AK (which is supposed to be user/kernel agnostic.)
This commit is contained in:
parent
c1c9da6c35
commit
58fb3ebf66
48 changed files with 101 additions and 103 deletions
|
@ -6,9 +6,9 @@
|
|||
|
||||
#include "MatroskaReader.h"
|
||||
#include <AK/Function.h>
|
||||
#include <AK/MappedFile.h>
|
||||
#include <AK/Optional.h>
|
||||
#include <AK/Utf8View.h>
|
||||
#include <LibCore/MappedFile.h>
|
||||
|
||||
namespace Video {
|
||||
|
||||
|
@ -43,7 +43,7 @@ constexpr u32 TIMESTAMP_ID = 0xE7;
|
|||
|
||||
OwnPtr<MatroskaDocument> MatroskaReader::parse_matroska_from_file(StringView path)
|
||||
{
|
||||
auto mapped_file_result = MappedFile::map(path);
|
||||
auto mapped_file_result = Core::MappedFile::map(path);
|
||||
if (mapped_file_result.is_error())
|
||||
return {};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue