~ubuntu-branches/ubuntu/saucy/rrdtool/saucy-proposed

« back to all changes in this revision

Viewing changes to src/rrd_tool.h

  • Committer: Bazaar Package Importer
  • Author(s): Clint Byrum
  • Date: 2010-07-22 08:07:01 UTC
  • mfrom: (1.2.8 upstream) (3.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100722080701-k46mgdfz6euxwqsm
Tags: 1.4.3-1ubuntu1
* Merge from debian unstable, Remaining changes:
  - debian/control: Don't build against ruby1.9 as we don't want
    it in main.
* require libdbi >= 0.8.3 to prevent aborts when using dbi datasources

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
 
 * RRDtool 1.3.8  Copyright by Tobi Oetiker, 1997-2009
 
2
 * RRDtool 1.4.3  Copyright by Tobi Oetiker, 1997-2010
3
3
 *****************************************************************************
4
4
 * rrd_tool.h   Common Header File
5
5
 *****************************************************************************/
83
83
    int       rrd_create_fn(
84
84
    const char *file_name,
85
85
    rrd_t *rrd);
86
 
    int       rrd_fetch_fn(
87
 
    const char *filename,
88
 
    enum cf_en cf_idx,
89
 
    time_t *start,
90
 
    time_t *end,
91
 
    unsigned long *step,
92
 
    unsigned long *ds_cnt,
93
 
    char ***ds_namv,
94
 
    rrd_value_t **data);
 
86
    int rrd_fetch_fn (const char *filename,
 
87
            enum cf_en cf_idx,
 
88
            time_t *start,
 
89
            time_t *end,
 
90
            unsigned long *step,
 
91
            unsigned long *ds_cnt,
 
92
            char ***ds_namv,
 
93
            rrd_value_t **data);
 
94
 
 
95
 
 
96
#ifdef HAVE_LIBDBI
 
97
int rrd_fetch_fn_libdbi(const char *filename, enum cf_en cf_idx,
 
98
                        time_t *start,time_t *end,
 
99
                        unsigned long *step,
 
100
                        unsigned long *ds_cnt,
 
101
                        char        ***ds_namv,
 
102
                        rrd_value_t **data);
 
103
#endif
95
104
 
96
105
#define RRD_READONLY    (1<<0)
97
106
#define RRD_READWRITE   (1<<1)
98
107
#define RRD_CREAT       (1<<2)
99
108
#define RRD_READAHEAD   (1<<3)
100
109
#define RRD_COPY        (1<<4)
 
110
#define RRD_EXCL        (1<<5)
101
111
 
102
112
    enum cf_en cf_conv(
103
113
    const char *string);
106
116
    long      ds_match(
107
117
    rrd_t *rrd,
108
118
    char *ds_nam);
 
119
    off_t rrd_get_header_size(
 
120
    rrd_t *rrd);
109
121
    double    rrd_diff(
110
122
    char *a,
111
123
    char *b);
112
124
 
113
 
#endif
 
125
#endif /* _RRD_TOOL_H */
114
126
 
115
127
#ifdef  __cplusplus
116
128
}