]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
liblzma: Improve documentation for version.h.
authorJia Tan <jiat0218@gmail.com>
Thu, 26 Jan 2023 01:50:21 +0000 (09:50 +0800)
committerJia Tan <jiat0218@gmail.com>
Tue, 7 Mar 2023 15:57:39 +0000 (23:57 +0800)
Specified parameter and return values for API functions and documented
a few more of the macros.

src/liblzma/api/lzma/version.h

index d8d0959900c97d0ef8ba45baefaf37ef7ac04d29..4ee90d55e674f5a883976ff174b7a2dbcb71c14d 100644 (file)
 #endif
 
 
-/*
- * Version number split into components
- */
+/** \brief Major version number of the liblzma release. */
 #define LZMA_VERSION_MAJOR 5
+
+/** \brief Minor version number of the liblzma release. */
 #define LZMA_VERSION_MINOR 4
+
+/** \brief Patch version number of the liblzma release. */
 #define LZMA_VERSION_PATCH 1
+
+/**
+ * \brief Version stability marker
+ *
+ * This will always be one of three values:
+ *   - LZMA_VERSION_STABILITY_ALPHA
+ *   - LZMA_VERSION_STABILITY_BETA
+ *   - LZMA_VERSION_STABILITY_STABLE
+ */
 #define LZMA_VERSION_STABILITY LZMA_VERSION_STABILITY_STABLE
 
+/** \brief Commit version number of the liblzma release */
 #ifndef LZMA_VERSION_COMMIT
 #      define LZMA_VERSION_COMMIT ""
 #endif
 /**
  * \brief       Run-time version number as an integer
  *
- * Return the value of LZMA_VERSION macro at the compile time of liblzma.
- * This allows the application to compare if it was built against the same,
+ * This allows an application to compare if it was built against the same,
  * older, or newer version of liblzma that is currently running.
+ *
+ * \return The value of LZMA_VERSION macro at the compile time of liblzma
  */
 extern LZMA_API(uint32_t) lzma_version_number(void)
                lzma_nothrow lzma_attr_const;
@@ -113,8 +126,10 @@ extern LZMA_API(uint32_t) lzma_version_number(void)
 /**
  * \brief       Run-time version as a string
  *
- * This function may be useful if you want to display which version of
- * liblzma your application is currently using.
+ * This function may be useful to display which version of liblzma an
+ * application is currently using.
+ *
+ * \return      Run-time version of liblzma
  */
 extern LZMA_API(const char *) lzma_version_string(void)
                lzma_nothrow lzma_attr_const;