summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-06-05 18:19:42 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-06-07 02:44:10 +0200
commit82ace40392829e6361f3052941e3c60effeb8a98 (patch)
treef6be752822c83c5675df651f169ba310a35ab7cb /include
parent9c61e28d9b9faf6bd8b4e9b8d28ed79b441fbeb6 (diff)
Move the fragment deduplication hash table back into the block processor
Fragment deduplication really doesn't belong into the public API of the fragment table. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include')
-rw-r--r--include/sqfs/frag_table.h42
1 files changed, 0 insertions, 42 deletions
diff --git a/include/sqfs/frag_table.h b/include/sqfs/frag_table.h
index fc2c8a4..bcdee20 100644
--- a/include/sqfs/frag_table.h
+++ b/include/sqfs/frag_table.h
@@ -146,48 +146,6 @@ SQFS_API int sqfs_frag_table_set(sqfs_frag_table_t *tbl, sqfs_u32 index,
*/
SQFS_API size_t sqfs_frag_table_get_size(sqfs_frag_table_t *tbl);
-/**
- * @brief Remember a specific tail end chunk within a fragment block.
- *
- * @memberof sqfs_frag_table_t
- *
- * This is a convenience function that memorizes a specific tail end packed
- * into a fragment block, primarily for looking it up later by hash and size
- * using @ref sqfs_frag_table_find_tail_end.
- *
- * @param tbl A pointer to the fragmen table object.
- * @param index An index into the fragment table that identifies the
- * fragment block.
- * @param offset A byte offset into the actual fragment block itself.
- * @param size The size of the tail en inside the fragment block.
- * @param hash An arbitrary 32 bit data hash to memorize.
- *
- * @return Zero on success, an @ref SQFS_ERROR on faiure.
- */
-SQFS_API int sqfs_frag_table_add_tail_end(sqfs_frag_table_t *tbl,
- sqfs_u32 index, sqfs_u32 offset,
- sqfs_u32 size, sqfs_u32 hash);
-
-/**
- * @brief RFetch a fragment block index and offset by hash and size
- *
- * @memberof sqfs_frag_table_t
- *
- * This is a convenience function that can find data chunks previously
- * memorized using @ref sqfs_frag_table_add_tail_end.
- *
- * @param tbl A pointer to the fragmen table object.
- * @param hash An arbitrary 32 bit data hash that describes the chunk.
- * @param size The size of the chunk to look for.
- * @param index Returns an index into the fragment table on success.
- * @param offset Returns a byte offset into the fragment block on success.
- *
- * @return Zero on success, non-zero if the chunk could not be found.
- */
-SQFS_API int sqfs_frag_table_find_tail_end(sqfs_frag_table_t *tbl,
- sqfs_u32 hash, sqfs_u32 size,
- sqfs_u32 *index, sqfs_u32 *offset);
-
#ifdef __cplusplus
}
#endif