From f111b5f3b8ae3670f053fa921f73df36ca9f2625 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Wed, 25 Oct 2023 15:15:20 +0200 Subject: [PATCH] Introduce `getBlobIndex`. This is use in zim-check to not count clone entries as duplicated entries. --- include/zim/item.h | 1 + src/item.cpp | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/include/zim/item.h b/include/zim/item.h index 07ec0607a..f1bc37047 100644 --- a/include/zim/item.h +++ b/include/zim/item.h @@ -91,6 +91,7 @@ namespace zim #ifdef ZIM_PRIVATE cluster_index_type getClusterIndex() const; + blob_index_type getBlobIndex() const; #endif private: // data diff --git a/src/item.cpp b/src/item.cpp index 19a95e9c5..ed65c6d24 100644 --- a/src/item.cpp +++ b/src/item.cpp @@ -103,3 +103,8 @@ cluster_index_type Item::getClusterIndex() const { return m_dirent->getClusterNumber().v; } + +blob_index_type Item::getBlobIndex() const +{ + return m_dirent->getBlobNumber().v; +}