X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd.h;h=412e20abe592823aa868730569964ce06b28d46c;hb=eccb8f633c724cfff32a96bb036647006e2a5e56;hp=67c213f562074190fd71d60f757a54bbec86c3e5;hpb=7c4039b31bcabef8f914ce245b71c43509ded6ca;p=rrdtool.git diff --git a/src/rrd.h b/src/rrd.h index 67c213f..412e20a 100644 --- a/src/rrd.h +++ b/src/rrd.h @@ -208,7 +208,7 @@ extern "C" { unsigned long *, char ***, rrd_value_t **); - int rrd_cmd_flush (int argc, char **argv); + int rrd_flushcached (int argc, char **argv); void rrd_freemem( void *mem); @@ -319,6 +319,14 @@ int rrd_proc_start_end( /* int rrd_test_error_r (rrd_context_t *); */ /* char *rrd_get_error_r (rrd_context_t *); */ +/** UTILITY FUNCTIONS */ + + long rrd_random(void); + + int rrd_add_ptr(void ***dest, size_t *dest_size, void *src); + int rrd_add_strdup(char ***dest, size_t *dest_size, char *src); + void rrd_free_ptrs(void ***src, size_t *cnt); + /* * The following functions are _internal_ functions needed to read the raw RRD * files. Since they are _internal_ they may change with the file format and @@ -374,6 +382,9 @@ int rrd_proc_start_end( const void *buf, size_t count) RRD_DEPRECATED; + void rrd_flush( + rrd_file_t *rrd_file) + RRD_DEPRECATED; off_t rrd_seek( rrd_file_t *rrd_file, off_t off,