bindings should invoke new rrd_flushcached (instead of rrd_cmd_flush) -- kevin
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Tue, 26 May 2009 15:24:26 +0000 (15:24 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Tue, 26 May 2009 15:24:26 +0000 (15:24 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1816 a5681a0c-68f1-0310-ab6d-d61299d08faa

bindings/lua/rrdlua.c
bindings/perl-shared/RRDs.pm
bindings/perl-shared/RRDs.xs
bindings/python/rrdtoolmodule.c
bindings/ruby/main.c
bindings/tcl/tclrrd.c

index 2060f3b..a733184 100644 (file)
@@ -293,9 +293,9 @@ lua_rrd_graph (lua_State * L)
 }
 
 static int
 }
 
 static int
-lua_rrd_flush(lua_State *L)
+lua_rrd_flushcached(lua_State *L)
 {
 {
-  return rrd_common_call(L, "flush", rrd_cmd_flush);
+  return rrd_common_call(L, "flushcached", rrd_flushcached);
 }
 
 #if defined(DINF)
 }
 
 #if defined(DINF)
@@ -353,7 +353,7 @@ static const struct luaL_reg rrd[] = {
   {"restore", lua_rrd_restore},
   {"tune", lua_rrd_tune},
   {"update", lua_rrd_update},
   {"restore", lua_rrd_restore},
   {"tune", lua_rrd_tune},
   {"update", lua_rrd_update},
-  {"flush", lua_rrd_flush},
+  {"flushcached", lua_rrd_flushcached},
 #if defined(DINF)
   {"info", lua_rrd_info},
   {"updatev", lua_rrd_updatev},
 #if defined(DINF)
   {"info", lua_rrd_info},
   {"updatev", lua_rrd_updatev},
index 3f88c92..33dd529 100644 (file)
@@ -33,7 +33,7 @@ RRDs - Access RRDtool as a shared module
   RRDs::times(start, end)
   RRDs::dump ...
   RRDs::restore ...
   RRDs::times(start, end)
   RRDs::dump ...
   RRDs::restore ...
-  RRDs::flush ...
+  RRDs::flushcached ...
 
 =head1 DESCRIPTION
 
 
 =head1 DESCRIPTION
 
index 3cf1d24..e15aaec 100644 (file)
@@ -445,7 +445,7 @@ rrd_restore(...)
                RETVAL
 
 int
                RETVAL
 
 int
-rrd_flush(...)
+rrd_flushcached(...)
        PROTOTYPE: @
        PREINIT:
        int i;
        PROTOTYPE: @
        PREINIT:
        int i;
index 85f63c7..4e20aa0 100644 (file)
@@ -557,11 +557,11 @@ static PyObject *PyRRD_updatev(
     return r;
 }
 
     return r;
 }
 
-static char PyRRD_flush__doc__[] =
+static char PyRRD_flushcached__doc__[] =
   "flush(args..): flush RRD files from memory\n"
   "   flush [--daemon address] file [file ...]";
 
   "flush(args..): flush RRD files from memory\n"
   "   flush [--daemon address] file [file ...]";
 
-static PyObject *PyRRD_flush(
+static PyObject *PyRRD_flushcached(
     PyObject UNUSED(*self),
     PyObject * args)
 {
     PyObject UNUSED(*self),
     PyObject * args)
 {
@@ -569,7 +569,7 @@ static PyObject *PyRRD_flush(
     int       argc;
     char    **argv;
 
     int       argc;
     char    **argv;
 
-    if (create_args("flush", args, &argc, &argv) < 0)
+    if (create_args("flushcached", args, &argc, &argv) < 0)
         return NULL;
 
     if (rrd_cmd_flush(argc, argv) != 0) {
         return NULL;
 
     if (rrd_cmd_flush(argc, argv) != 0) {
@@ -600,7 +600,7 @@ static PyMethodDef _rrdtool_methods[] = {
     meth("info", PyRRD_info, PyRRD_info__doc__),
     meth("graphv", PyRRD_graphv, PyRRD_graphv__doc__),
     meth("updatev", PyRRD_updatev, PyRRD_updatev__doc__),
     meth("info", PyRRD_info, PyRRD_info__doc__),
     meth("graphv", PyRRD_graphv, PyRRD_graphv__doc__),
     meth("updatev", PyRRD_updatev, PyRRD_updatev__doc__),
-    meth("flush", PyRRD_flush, PyRRD_flush__doc__),
+    meth("flushcached", PyRRD_flushcached, PyRRD_flushcached__doc__),
     {NULL, NULL, 0, NULL}
 };
 
     {NULL, NULL, 0, NULL}
 };
 
index 4942277..4aa5473 100644 (file)
@@ -144,7 +144,7 @@ VALUE rb_rrd_update(
     return rrd_call(rrd_update, args);
 }
 
     return rrd_call(rrd_update, args);
 }
 
-VALUE rb_rrd_flush(
+VALUE rb_rrd_flushcached(
     VALUE self,
     VALUE args)
 {
     VALUE self,
     VALUE args)
 {
@@ -334,7 +334,7 @@ void Init_RRD(
     rb_define_module_function(mRRD, "restore", rb_rrd_restore, -2);
     rb_define_module_function(mRRD, "tune", rb_rrd_tune, -2);
     rb_define_module_function(mRRD, "update", rb_rrd_update, -2);
     rb_define_module_function(mRRD, "restore", rb_rrd_restore, -2);
     rb_define_module_function(mRRD, "tune", rb_rrd_tune, -2);
     rb_define_module_function(mRRD, "update", rb_rrd_update, -2);
-    rb_define_module_function(mRRD, "flush", rb_rrd_flush, -2);
+    rb_define_module_function(mRRD, "flushcached", rb_rrd_flushcached, -2);
     rb_define_module_function(mRRD, "info", rb_rrd_info, -2);
     rb_define_module_function(mRRD, "updatev", rb_rrd_updatev, -2);
     rb_define_module_function(mRRD, "graphv", rb_rrd_graphv, -2);
     rb_define_module_function(mRRD, "info", rb_rrd_info, -2);
     rb_define_module_function(mRRD, "updatev", rb_rrd_updatev, -2);
     rb_define_module_function(mRRD, "graphv", rb_rrd_graphv, -2);
index f8a3c84..9277257 100644 (file)
@@ -231,7 +231,7 @@ static int Rrd_Dump(
 }
 
 /* Thread-safe version */
 }
 
 /* Thread-safe version */
-static int Rrd_Flush(
+static int Rrd_Flushcached(
     ClientData __attribute__((unused)) clientData,
     Tcl_Interp *interp,
     int argc,
     ClientData __attribute__((unused)) clientData,
     Tcl_Interp *interp,
     int argc,
@@ -650,7 +650,7 @@ typedef struct {
 static CmdInfo rrdCmds[] = {
     {"Rrd::create", Rrd_Create, 1}, /* Thread-safe version */
     {"Rrd::dump", Rrd_Dump, 0}, /* Thread-safe version */
 static CmdInfo rrdCmds[] = {
     {"Rrd::create", Rrd_Create, 1}, /* Thread-safe version */
     {"Rrd::dump", Rrd_Dump, 0}, /* Thread-safe version */
-    {"Rrd::flush", Rrd_Flush, 0},
+    {"Rrd::flushcached", Rrd_Flushcached, 0},
     {"Rrd::last", Rrd_Last, 0}, /* Thread-safe version */
     {"Rrd::lastupdate", Rrd_Lastupdate, 0}, /* Thread-safe version */
     {"Rrd::update", Rrd_Update, 1}, /* Thread-safe version */
     {"Rrd::last", Rrd_Last, 0}, /* Thread-safe version */
     {"Rrd::lastupdate", Rrd_Lastupdate, 0}, /* Thread-safe version */
     {"Rrd::update", Rrd_Update, 1}, /* Thread-safe version */