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
[EMAIL PROTECTED]

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
[EMAIL PROTECTED]

--
Unsubscribe mailto:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

Reply via email to