[librsvg: 35/38] Add docs for librsvg_version and associated variables



commit 2b7578af1a0e05f283dffbb139f43e3ea7a314dd
Author: Federico Mena Quintero <federico gnome org>
Date:   Fri Jan 25 12:34:02 2019 -0600

    Add docs for librsvg_version and associated variables

 doc/rsvg-sections.txt      |  3 +++
 librsvg/librsvg-features.c | 27 ++++++++++++++++++++++++++-
 2 files changed, 29 insertions(+), 1 deletion(-)
---
diff --git a/doc/rsvg-sections.txt b/doc/rsvg-sections.txt
index 6a28f5e6..de06df67 100644
--- a/doc/rsvg-sections.txt
+++ b/doc/rsvg-sections.txt
@@ -93,5 +93,8 @@ LIBRSVG_CHECK_VERSION
 LIBRSVG_HAVE_SVGZ
 LIBRSVG_HAVE_CSS
 LIBRSVG_CHECK_FEATURE
+librsvg_major_version
+librsvg_minor_version
+librsvg_micro_version
 librsvg_version
 </SECTION>
diff --git a/librsvg/librsvg-features.c b/librsvg/librsvg-features.c
index 5e083c26..07c4fd8d 100644
--- a/librsvg/librsvg-features.c
+++ b/librsvg/librsvg-features.c
@@ -1,7 +1,32 @@
 #include "rsvg.h"
 
-/* General initialization hooks */
+/**
+ * librsvg_major_version:
+ *
+ * Major version of the library.  For example, for version 2.3.4, the major
+ * version will be 2.
+ */
 const guint librsvg_major_version = LIBRSVG_MAJOR_VERSION;
+
+/**
+ * librsvg_minor_version:
+ *
+ * Minor version of the library.  For example, for version 2.3.4, the minor
+ * version will be 3.
+ */
 const guint librsvg_minor_version = LIBRSVG_MINOR_VERSION;
+
+/**
+ * librsvg_micro_version:
+ *
+ * Micro version of the library.  For example, for version 2.3.4, the micro
+ * version will be 4.
+ */
 const guint librsvg_micro_version = LIBRSVG_MICRO_VERSION;
+
+/**
+ * librsvg_version:
+ *
+ * String with the library version.  For example, "<literal>2.3.4</literal>".
+ */
 const char librsvg_version[] = LIBRSVG_VERSION;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]