projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix flush race in rrdcached -- Christian Hitz
[rrdtool.git]
/
src
/
rrd.h
diff --git
a/src/rrd.h
b/src/rrd.h
index
7643c42
..
dc99669
100644
(file)
--- a/
src/rrd.h
+++ b/
src/rrd.h
@@
-1,5
+1,5
@@
/*****************************************************************************
/*****************************************************************************
- * RRDtool 1.4.
0 Copyright by Tobi Oetiker, 1997-2009
+ * RRDtool 1.4.
3 Copyright by Tobi Oetiker, 1997-2010
*****************************************************************************
* rrdlib.h Public header file for librrd
*****************************************************************************
*****************************************************************************
* rrdlib.h Public header file for librrd
*****************************************************************************
@@
-57,6
+57,12
@@
extern "C" {
#ifndef WIN32
#include <unistd.h> /* for off_t */
#else
#ifndef WIN32
#include <unistd.h> /* for off_t */
#else
+#ifdef _MSC_VER
+#ifndef PERLPATCHLEVEL
+ typedef int mode_t;
+#endif
+ #define strtoll _strtoi64
+#endif
typedef size_t ssize_t;
typedef long off_t;
#endif
typedef size_t ssize_t;
typedef long off_t;
#endif
@@
-222,18
+228,32
@@
extern "C" {
const char *filename,
unsigned long pdp_step,
time_t last_up,
const char *filename,
unsigned long pdp_step,
time_t last_up,
+ /* int no_overwrite, */
+ int argc,
+ const char **argv);
+ int rrd_create_r2(
+ const char *filename,
+ unsigned long pdp_step,
+ time_t last_up,
+ int no_overwrite,
int argc,
const char **argv);
rrd_info_t *rrd_info_r(
char *);
int argc,
const char **argv);
rrd_info_t *rrd_info_r(
char *);
-/* NOTE: rrd_update_r a
re only thread-safe if no at-style tim
e
- specifications get used!!! */
+/* NOTE: rrd_update_r a
nd rrd_update_v_r are only thread-safe if no at-styl
e
+
time
specifications get used!!! */
int rrd_update_r(
const char *filename,
const char *_template,
int argc,
const char **argv);
int rrd_update_r(
const char *filename,
const char *_template,
int argc,
const char **argv);
+ int rrd_update_v_r(
+ const char *filename,
+ const char *_template,
+ int argc,
+ const char **argv,
+ rrd_info_t * pcdp_summary);
int rrd_fetch_r (
const char *filename,
const char *cf,
int rrd_fetch_r (
const char *filename,
const char *cf,
@@
-266,7
+286,8
@@
extern "C" {
typedef enum {
ABSOLUTE_TIME,
RELATIVE_TO_START_TIME,
typedef enum {
ABSOLUTE_TIME,
RELATIVE_TO_START_TIME,
- RELATIVE_TO_END_TIME
+ RELATIVE_TO_END_TIME,
+ RELATIVE_TO_EPOCH
} rrd_timetype_t;
#define TIME_OK NULL
} rrd_timetype_t;
#define TIME_OK NULL
@@
-333,8
+354,12
@@
int rrd_proc_start_end(
long rrd_random(void);
long rrd_random(void);
+ int rrd_add_ptr_chunk(void ***dest, size_t *dest_size, void *src,
+ size_t *alloc, size_t chunk);
int rrd_add_ptr(void ***dest, size_t *dest_size, void *src);
int rrd_add_strdup(char ***dest, size_t *dest_size, char *src);
int rrd_add_ptr(void ***dest, size_t *dest_size, void *src);
int rrd_add_strdup(char ***dest, size_t *dest_size, char *src);
+ int rrd_add_strdup_chunk(char ***dest, size_t *dest_size, char *src,
+ size_t *alloc, size_t chunk);
void rrd_free_ptrs(void ***src, size_t *cnt);
int rrd_mkdir_p(const char *pathname, mode_t mode);
void rrd_free_ptrs(void ***src, size_t *cnt);
int rrd_mkdir_p(const char *pathname, mode_t mode);