lib: add bt_version_get_vcs_revision_description()
[babeltrace.git] / include / babeltrace2 / version.h
index 7cd0213f9b62952d297d4a3a679fd241f6cc18df..8ced70e10a0aaae5ae5248a73bab31338760594f 100644 (file)
@@ -37,8 +37,8 @@ extern "C" {
 @brief
     Library version getters.
 
-This module contains four functions to get the four parts of the
-library's version:
+This module contains four functions to information about the library's
+version:
 
 <dl>
   <dt>Major version</dt>
@@ -50,8 +50,17 @@ library's version:
   <dt>Patch version</dt>
   <dd>bt_version_get_patch()</dd>
 
-  <dt>Extra information</dt>
-  <dd>bt_version_get_extra()</dd>
+  <dt>\bt_dt_opt Development stage</dt>
+  <dd>bt_version_get_development_stage()</dd>
+
+  <dt>\bt_dt_opt Version control system revision's description</dt>
+  <dd>bt_version_get_vcs_revision_description()</dd>
+
+  <dt>\bt_dt_opt Release name</dt>
+  <dd>bt_version_get_name()</dd>
+
+  <dt>\bt_dt_opt Release name's description</dt>
+  <dd>bt_version_get_name_description()</dd>
 </dl>
 */
 
@@ -86,21 +95,59 @@ extern unsigned int bt_version_get_patch(void);
 
 /*!
 @brief
-    Returns extra information about the version of libbabeltrace2.
+    Returns the development stage of libbabeltrace2's version.
 
-This extra information can contain a version suffix such as
+The development stage \em can contain a version suffix such as
 <code>-pre5</code> or <code>-rc1</code>.
 
 @returns
-    @parblock
-    Extra information about the library's version.
+    Development stage of the library's version, or \c NULL if none.
+*/
+extern const char *bt_version_get_development_stage(void);
+
+/*!
+@brief
+    Returns the version control system (VCS) revision's description of
+    libbabeltrace2's version.
+
+The VCS revision description is only available for a non-release build
+of the library.
+
+@returns
+    Version control system revision's description of the library's
+    version, or \c NULL if none.
+*/
+extern const char *bt_version_get_vcs_revision_description(void);
+
+/*!
+@brief
+    Returns libbabeltrace2's release name.
+
+If the release name is not available, which can be the case for a
+development build, this function returns \c NULL.
+
+@returns
+    Library's release name, or \c NULL if not available.
+
+@sa bt_version_get_name_description() &mdash;
+    Returns the description of libbabeltrace2's release name.
+*/
+extern const char *bt_version_get_name(void);
+
+/*!
+@brief
+    Returns libbabeltrace2's release name's description.
+
+If the release name's description is not available, which can be the
+case for a development build, this function returns \c NULL.
 
-    Cannot be \c NULL.
+@returns
+    Library's release name's description, or \c NULL if not available.
 
-    Can be an empty string if there's no extra information.
-    @endparblock
+@sa bt_version_get_name() &mdash;
+    Returns libbabeltrace2's release name.
 */
-extern const char *bt_version_get_extra(void);
+extern const char *bt_version_get_name_description(void);
 
 /*! @} */
 
This page took 0.024363 seconds and 4 git commands to generate.