From ddef520426eac2b6de73d4a81f1922d7747af28f Mon Sep 17 00:00:00 2001 From: oetiker Date: Sun, 13 Aug 2006 16:25:00 +0000 Subject: [PATCH] added new rrdstrversion function -- Guenter Knauf git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@875 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd.h | 1 + src/rrd_version.c | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/src/rrd.h b/src/rrd.h index 8f46692..c3199ef 100644 --- a/src/rrd.h +++ b/src/rrd.h @@ -72,6 +72,7 @@ int rrd_tune(int, char **); time_t rrd_last(int, char **); time_t rrd_first(int, char **); int rrd_resize(int, char **); +char * rrd_strversion(void); double rrd_version(void); int rrd_xport(int, char **, int *, time_t *, time_t *, unsigned long *, unsigned long *, diff --git a/src/rrd_version.c b/src/rrd_version.c index 88c50e5..7a68ff7 100644 --- a/src/rrd_version.c +++ b/src/rrd_version.c @@ -14,4 +14,10 @@ rrd_version(void) return NUMVERS; } +char * +rrd_strversion(void) +{ + return PACKAGE_VERSION; +} + -- 2.30.2