X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd.h;h=b40251f5cadd78a60ab2090d146b049706a401e6;hp=d87275e487ae76524d27086a917563d550b6ab2d;hb=04ddf3a097198c83d74a60bc2f260b33db5ba92e;hpb=0bf04eb4dbe0507530a830676c3ed6a99f4495bf diff --git a/src/rrd.h b/src/rrd.h index d87275e..b40251f 100644 --- a/src/rrd.h +++ b/src/rrd.h @@ -79,13 +79,22 @@ extern "C" { /* information about an rrd file */ typedef struct rrd_file_t { - int fd; /* file descriptor if this rrd file */ - char *file_start; /* start address of an open rrd file */ off_t header_len; /* length of the header of this rrd file */ off_t file_len; /* total size of the rrd file */ off_t pos; /* current pos in file */ + void *pvt; } rrd_file_t; +/* information used for the conventional file access methods */ + typedef struct rrd_simple_file_t { + int fd; /* file descriptor of this rrd file */ +#ifdef HAVE_MMAP + char *file_start; /* start address of an open rrd file */ + int mm_prot; + int mm_flags; +#endif + } rrd_simple_file_t; + /* rrd info interface */ typedef struct rrd_blob_t { unsigned long size; /* size of the blob */ @@ -369,6 +378,18 @@ extern "C" { int rrd_lock( rrd_file_t *file) RRD_DEPRECATED; + void rrd_notify_row( + rrd_file_t *rrd_file, + int rra_idx, + unsigned long rra_row, + time_t rra_time) + RRD_DEPRECATED; + unsigned long rrd_select_initial_row( + rrd_file_t *rrd_file, + int rra_idx, + rra_def_t *rra + ) + RRD_DEPRECATED; #endif /* defined(_RRD_TOOL_H) || defined(RRD_EXPORT_DEPRECATED) */ #endif /* _RRDLIB_H */