[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rrd-users
Subject:    [rrd-users] Patch for rrdtool/perl-shared/RRDs.xs
From:       b2b () perlmeister ! com (Mike Schilli)
Date:       2004-05-23 19:09:48
Message-ID: 40B0F6FC.2010706 () perlmeister ! com
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic