From 13720c82d8089589d071397dcc72df610746057c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Wed, 2 Mar 2016 19:04:24 +0000 Subject: [PATCH] Add orc_version_string() --- doc/orc-sections.txt | 1 + orc/orc.c | 13 +++++++++++++ orc/orc.h | 2 ++ 3 files changed, 16 insertions(+) diff --git a/doc/orc-sections.txt b/doc/orc-sections.txt index a70f68e..ffb74f2 100644 --- a/doc/orc-sections.txt +++ b/doc/orc-sections.txt @@ -1,6 +1,7 @@
orc orc_init +orc_version_string
diff --git a/orc/orc.c b/orc/orc.c index 55ac934..2acf522 100644 --- 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; +} diff --git a/orc/orc.h b/orc/orc.h index 5cc3804..b34650d 100644 --- a/orc/orc.h +++ b/orc/orc.h @@ -10,5 +10,7 @@ #include #include +const char * orc_version_string (void); + #endif -- 2.7.4