From: oetiker Date: Sun, 13 Aug 2006 16:25:00 +0000 (+0000) Subject: added new rrdstrversion function -- Guenter Knauf X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=891675205d28c07255312b4305fcc9f75b23c346;p=rrdtool-all.git added new rrdstrversion function -- Guenter Knauf git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@875 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd.h b/program/src/rrd.h index 8f466920..c3199ef6 100644 --- a/program/src/rrd.h +++ b/program/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/program/src/rrd_version.c b/program/src/rrd_version.c index 88c50e56..7a68ff7e 100644 --- a/program/src/rrd_version.c +++ b/program/src/rrd_version.c @@ -14,4 +14,10 @@ rrd_version(void) return NUMVERS; } +char * +rrd_strversion(void) +{ + return PACKAGE_VERSION; +} +