object-manager+fetcher: Use segmentNumber for file segments
Change-Id: Ib78ee034dba2a1ea9d140b091181694049655bb9
diff --git a/src/fetcher.hpp b/src/fetcher.hpp
index 40d5258..cdee6c3 100644
--- a/src/fetcher.hpp
+++ b/src/fetcher.hpp
@@ -44,6 +44,7 @@
typedef std::function<void(Fetcher&)> OnFetchFailedCallback;
Fetcher(Face& face,
+ bool isSegment,
const SegmentCallback& segmentCallback, // callback passed by caller of FetchManager
const FinishCallback& finishCallback, // callback passed by caller of FetchManager
const OnFetchCompleteCallback& onFetchComplete,
@@ -166,6 +167,7 @@
std::mutex m_seqNoMutex;
boost::asio::io_service& m_ioService;
+ bool m_isSegment;
};
typedef shared_ptr<Fetcher> FetcherPtr;