forked from commx/python-rrdtool
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrrdtoolmodule.h
More file actions
26 lines (21 loc) · 972 Bytes
/
Copy pathrrdtoolmodule.h
File metadata and controls
26 lines (21 loc) · 972 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef __RRDTOOLMODULE_H_
#define __RRDTOOLMODULE_H_
#define RRD_EXPORT_DEPRECATED
#define HAVE_RRD_GRAPH
#include <rrd.h>
/* for some reason, some declarations are not available on librrd
distributions, so we re-define them here. */
typedef int (*rrd_fetch_cb_t)(
const char *filename, /* name of the rrd */
enum cf_en cf_idx, /* consolidation function */
time_t *start,
time_t *end, /* which time frame do you want?
* will be changed to represent reality */
unsigned long *step, /* which stepsize do you want?
* will be changed to represent reality */
unsigned long *ds_cnt, /* number of data sources in file */
char ***ds_namv, /* names of data_sources */
rrd_value_t **data /* two dimensional array containing the data */
);
int rrd_fetch_cb_register(rrd_fetch_cb_t cb);
#endif /* __RRDTOOLMODULE_H_ */