]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
liblzma: Tweak lzma_index_iter_locate() API docs
authorLasse Collin <lasse.collin@tukaani.org>
Fri, 23 May 2025 11:38:49 +0000 (14:38 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Wed, 1 Oct 2025 10:05:09 +0000 (13:05 +0300)
Say in \brief that the function locates by uncompressed offset.
Use "target_offset" instead of plain "target" as the function argument.

These make the docs slightly clearer when a function to locate by
Block number is added.

src/liblzma/api/lzma/index.h

index b17025e3d901663b7a44bdf988e93c2f83db6c45..8f0aa714551945a883dbcfbffd12791a21ad0731 100644 (file)
@@ -630,7 +630,7 @@ extern LZMA_API(lzma_bool) lzma_index_iter_next(
 
 
 /**
- * \brief       Locate a Block
+ * \brief       Locate a Block by uncompressed offset
  *
  * If it is possible to seek in the .xz file, it is possible to parse
  * the Index field(s) and use lzma_index_iter_locate() to do random-access
@@ -648,7 +648,8 @@ extern LZMA_API(lzma_bool) lzma_index_iter_next(
  *
  * \param       iter    Iterator that was earlier initialized with
  *                      lzma_index_iter_init().
- * \param       target  Uncompressed target offset which the caller would
+ * \param       target_offset
+ *                      Uncompressed target offset which the caller would
  *                      like to locate from the Stream
  *
  * \return      lzma_bool:
@@ -658,7 +659,7 @@ extern LZMA_API(lzma_bool) lzma_index_iter_next(
  *                of the Stream (success)
  */
 extern LZMA_API(lzma_bool) lzma_index_iter_locate(
-               lzma_index_iter *iter, lzma_vli target) lzma_nothrow;
+               lzma_index_iter *iter, lzma_vli target_offset) lzma_nothrow;
 
 
 /**