[rrd-users] Patch for rrdtool/perl-shared/RRDs.xs

Mike Schilli b2b at perlmeister.com
Sun May 23 21:09:48 MEST 2004


Hey folks,

here's a patch for rrdtool's Perl interface (RRDs) to support "rrdtool
dump" and "rrdtool restore". The two functions are missing in the
current (46) release, but can be added easily. Would be great if you
could apply it.

-- 
-- Mike
Mike Schilli
b2b at perlmeister.com

diff -Naur rrdtool-1.0.46.orig/perl-shared/RRDs.xs
rrdtool-1.0.46/perl-shared/RRDs.xs
--- rrdtool-1.0.46.orig/perl-shared/RRDs.xs     2004-05-22
19:46:42.000000000 -0700
+++ rrdtool-1.0.46/perl-shared/RRDs.xs  2004-05-22 19:48:17.000000000 -0700
@@ -339,3 +339,27 @@
                  RETVAL


+int
+rrd_dump(...)
+       PROTOTYPE: @
+       PREINIT:
+        int i;
+       char **argv;
+       CODE:
+               rrdcode(rrd_dump);
+                       RETVAL = 1;
+       OUTPUT:
+               RETVAL
+
+int
+rrd_restore(...)
+       PROTOTYPE: @
+       PREINIT:
+        int i;
+       char **argv;
+       CODE:
+               rrdcode(rrd_restore);
+                       RETVAL = 1;
+       OUTPUT:
+               RETVAL
+


-- 
-- Mike
Mike Schilli
b2b at perlmeister.com

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list