[windows] Fix MAC Address Discovery
[xbmc.git] / xbmc / filesystem / UDFFile.h
blob1617a1f1ce8c157f42df12aaff57a9753d0e9b9b
1 /*
2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #pragma once
11 #include "IFile.h"
12 #include "filesystem/UDFBlockInput.h"
14 #include <memory>
16 class udfread;
17 typedef struct udfread_file UDFFILE;
19 namespace XFILE
22 class CUDFFile : public IFile
24 public:
25 CUDFFile();
26 ~CUDFFile() override = default;
28 bool Open(const CURL& url) override;
29 void Close() override;
31 int Stat(const CURL& url, struct __stat64* buffer) override;
33 ssize_t Read(void* buffer, size_t size) override;
34 int64_t Seek(int64_t filePosition, int whence) override;
36 int64_t GetLength() override;
37 int64_t GetPosition() override;
39 bool Exists(const CURL& url) override;
41 private:
42 std::unique_ptr<CUDFBlockInput> m_bi{nullptr};
44 udfread* m_udf{nullptr};
45 UDFFILE* m_file{nullptr};
48 } // namespace XFILE