decoder/Bridge: add method OpenLocal()

This commit is contained in:
Max Kellermann
2019-05-30 17:08:09 +02:00
parent cfb678d618
commit 8fef4af7b2
3 changed files with 16 additions and 3 deletions

@@ -30,6 +30,8 @@
#include "tag/Tag.hxx"
#include "Log.hxx"
#include "input/InputStream.hxx"
#include "input/LocalOpen.hxx"
#include "fs/Path.hxx"
#include "util/ConstBuffer.hxx"
#include "util/StringBuffer.hxx"
@@ -49,6 +51,12 @@ DecoderBridge::~DecoderBridge() noexcept
assert(current_chunk == nullptr);
}
InputStreamPtr
DecoderBridge::OpenLocal(Path path_fs)
{
return OpenLocalInputStream(path_fs, dc.mutex);
}
bool
DecoderBridge::CheckCancelRead() const noexcept
{