From: oetiker Date: Fri, 11 Jun 2010 15:31:12 +0000 (+0000) Subject: Add rrd_update_v_r to librrd -- Frederik Kriewitz X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0e1850d537b798d8a3a40a032dd2facc601435ea;p=rrdtool-all.git Add rrd_update_v_r to librrd -- Frederik Kriewitz git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@2092 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/NEWS b/program/NEWS index 985b7f46..16742f2f 100644 --- a/program/NEWS +++ b/program/NEWS @@ -21,7 +21,9 @@ RRDcached * New FETCH command allowing rrd_fetch to operate through the daemon and thus work remotely. By Florian Forster - +API +--- +* exported rrd_update_v_r for theadsave rrd_update calls ##################################### diff --git a/program/src/librrd.sym.in.in b/program/src/librrd.sym.in.in index 3d632818..9a8f7f95 100644 --- a/program/src/librrd.sym.in.in +++ b/program/src/librrd.sym.in.in @@ -56,6 +56,7 @@ rrd_tune rrd_update rrd_update_r rrd_update_v +rrd_update_v_r rrd_version rrd_write rrd_xport diff --git a/program/src/rrd.h b/program/src/rrd.h index 28a50d7b..91bf660b 100644 --- a/program/src/rrd.h +++ b/program/src/rrd.h @@ -226,14 +226,20 @@ extern "C" { const char **argv); rrd_info_t *rrd_info_r( char *); -/* NOTE: rrd_update_r are only thread-safe if no at-style time - specifications get used!!! */ +/* NOTE: rrd_update_r and rrd_update_v_r are only thread-safe if no at-style + time specifications get used!!! */ int rrd_update_r( const char *filename, const char *_template, int argc, const char **argv); + int rrd_update_v_r( + const char *filename, + const char *_template, + int argc, + const char **argv, + rrd_info_t * pcdp_summary); int rrd_fetch_r ( const char *filename, const char *cf, diff --git a/program/src/rrd_update.c b/program/src/rrd_update.c index 0335a9ef..11016270 100644 --- a/program/src/rrd_update.c +++ b/program/src/rrd_update.c @@ -477,6 +477,16 @@ int rrd_update_r( return _rrd_update(filename, tmplt, argc, argv, NULL); } +int rrd_update_v_r( + const char *filename, + const char *tmplt, + int argc, + const char **argv, + rrd_info_t * pcdp_summary) +{ + return _rrd_update(filename, tmplt, argc, argv, pcdp_summary); +} + int _rrd_update( const char *filename, const char *tmplt,