/* This file is part of apfs-fuse, a read-only implementation of APFS (Apple File System) for FUSE. Copyright (C) 2017 Simon Gander Apfs-fuse is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version. Apfs-fuse is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with apfs-fuse. If not, see . */ #pragma once #ifdef __APPLE__ #include "Device.h" class DeviceMac : public Device { public: DeviceMac(); ~DeviceMac(); bool Open(const char *name) override; void Close() override; bool Read(void *data, uint64_t offs, uint64_t len) override; uint64_t GetSize() const override { return m_size; } private: int m_device; uint64_t m_size; }; #endif