projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a call back interface to rrd_dump to be able to call the function from c. See...
[rrdtool.git]
/
src
/
rrd.h
diff --git
a/src/rrd.h
b/src/rrd.h
index
412e20a
..
a5d3129
100644
(file)
--- a/
src/rrd.h
+++ b/
src/rrd.h
@@
-130,6
+130,10
@@
extern "C" {
struct rrd_info_t *next;
} rrd_info_t;
struct rrd_info_t *next;
} rrd_info_t;
+ typedef size_t (* rrd_output_callback_t)(
+ const void *,
+ size_t,
+ void *);
/* main function blocks */
int rrd_create(
/* main function blocks */
int rrd_create(
@@
-252,6
+256,12
@@
extern "C" {
const char *filename,
int rraindex);
const char *filename,
int rraindex);
+ int rrd_dump_cb_r(
+ const char *filename,
+ int opt_header,
+ rrd_output_callback_t cb,
+ void *user);
+
/* Transplanted from rrd_parsetime.h */
typedef enum {
ABSOLUTE_TIME,
/* Transplanted from rrd_parsetime.h */
typedef enum {
ABSOLUTE_TIME,