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.
11 #include "threads/CriticalSection.h"
15 #include <udfread/blockinput.h>
25 CUDFBlockInput() = default;
26 ~CUDFBlockInput() = default;
28 udfread_block_input
* GetBlockInput(const std::string
& file
);
31 static int Close(udfread_block_input
* bi
);
32 static uint32_t Size(udfread_block_input
* bi
);
33 static int Read(udfread_block_input
* bi
, uint32_t lba
, void* buf
, uint32_t nblocks
, int flags
);
37 struct udfread_block_input bi
;
38 std::shared_ptr
<XFILE::CFile
> fp
{nullptr};
39 CCriticalSection lock
;
42 std::unique_ptr
<UDF_BI
> m_bi
{nullptr};