]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
Fixed declaration and export of rrd_dump_opt_r. 790/head
authorSven Panne <svenpanne@gmail.com>
Tue, 30 May 2017 07:19:04 +0000 (09:19 +0200)
committerSven Panne <svenpanne@gmail.com>
Tue, 30 May 2017 07:19:04 +0000 (09:19 +0200)
The previous state of affairs regarding rrd_dump_opt_r was a bit
inconsistent: The dynamic library didn't export it, while the static one
did.  So the right way to fix it will be exporting it in both variants,
because removing it from the static library would require a major version
change.  Furthermore, rrd_dump_opt_r is mentioned in the documentation at
librrd.pod, so this is another hint for the fix.

In addition, a C prototype was wmissing, so GCC complained about it.

src/librrd.sym
src/rrd.h

index c5a707d8c5e717274e13288150e67c84dedd2847..a3c89c7b54a3aa6c39dd9316f5ea53984a50107b 100644 (file)
@@ -11,6 +11,7 @@ rrd_dontneed
 rrd_dump
 rrd_dump_r
 rrd_dump_cb_r
+rrd_dump_opt_r
 rrd_fetch
 rrd_fetch_r
 rrd_fetch_cb_register
index be153256f68d0622cd47e4434f871b1d337cd9a1..239e2c3783ad9c2047d8eec7b1eb23026a613937 100644 (file)
--- a/src/rrd.h
+++ b/src/rrd.h
@@ -292,6 +292,9 @@ struct rrd_t;
             unsigned long *ds_cnt,
             char ***ds_namv,
             rrd_value_t **data);
+    int rrd_dump_opt_r(const char *filename,
+                       char *outname,
+                       int opt_noheader);
     int       rrd_dump_r(
     const char *filename,
     char *outname);