Add orc_version_string()
authorTim-Philipp Müller <tim@centricular.com>
Wed, 2 Mar 2016 19:04:24 +0000 (19:04 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 2 Mar 2016 19:08:50 +0000 (19:08 +0000)
doc/orc-sections.txt
orc/orc.c
orc/orc.h

index a70f68e..ffb74f2 100644 (file)
@@ -1,6 +1,7 @@
 <SECTION>
 <FILE>orc</FILE>
 orc_init
+orc_version_string
 </SECTION>
 
 <SECTION>
index 55ac934..2acf522 100644 (file)
--- a/orc/orc.c
+++ b/orc/orc.c
@@ -70,3 +70,16 @@ orc_init (void)
   }
 }
 
+/**
+ * orc_version_string:
+ *
+ * Returns the orc version as a string. This will be either a triplet like
+ * "0.4.25" or with an additional nano number like "0.4.25.1".
+ *
+ * Since: 0.4.25
+ */
+const char *
+orc_version_string (void)
+{
+  return (const char *) VERSION;
+}
index 5cc3804..b34650d 100644 (file)
--- a/orc/orc.h
+++ b/orc/orc.h
@@ -10,5 +10,7 @@
 #include <orc/orcutils.h>
 #include <orc/orccpu.h>
 
+const char * orc_version_string (void);
+
 #endif