Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
return line;
}
+
+const char * gpiod_version_string(void)
+{
+ return PACKAGE_VERSION;
+}
!gpiod_line_iter_done(iter); \
(line) = gpiod_line_iter_next(iter))
+/**
+ * @}
+ *
+ * @defgroup __misc__ Stuff that didn't fit anywhere else
+ * @{
+ *
+ * Various libgpiod-related functions.
+ */
+
+/**
+ * @brief Get the version of the library as a human-readable string.
+ * @return Human-readable string containing the library version.
+ */
+const char * gpiod_version_string(void) GPIOD_API;
+
/**
* @}
*/