new trunk based on current 1.2
[rrdtool.git] / bindings / python / rrd_extra.h
1 /*
2  *  This file is part of RRDtool.
3  *
4  *  RRDtool is free software; you can redistribute it and/or modify
5  *  it under the terms of the GNU General Public License as published
6  *  by the Free Software Foundation; either version 2 of the License, or
7  *  (at your option) any later version.
8  *
9  *  RRDtool is distributed in the hope that it will be useful,
10  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  *  GNU General Public License for more details.
13  *
14  *  You should have received a copy of the GNU General Public License
15  *  along with Foobar; if not, write to the Free Software
16  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17  */
18
19 /*****************************************************************************
20  * RRDtool 1.0.37  Copyright Tobias Oetiker, 1997 - 2000
21  *****************************************************************************
22  * rrd_tool.h   Common Header File
23  *****************************************************************************
24  * Id: rrd_tool.h,v 1.1.1.1 2002/02/26 10:21:37 oetiker Exp
25  * Log: rrd_tool.h,v
26  * Revision 1.1.1.1  2002/02/26 10:21:37  oetiker
27  * Intial Import
28  *
29  *****************************************************************************/
30 #ifdef  __cplusplus
31 extern "C" {
32 #endif
33
34 #ifndef _RRD_EXTRA_H
35 #define _RRD_EXTRA_H
36
37 #include "rrd_format.h"
38
39 #ifndef WIN32
40 #ifndef isnan /* POSIX */
41 int isnan(double value);
42 #endif
43 #else /* Windows only */
44 #include <float.h>
45 #define isnan _isnan
46 #endif
47
48 void rrd_free(rrd_t *rrd);
49 void rrd_init(rrd_t *rrd);
50
51 int rrd_open(char *file_name, FILE **in_file, rrd_t *rrd, int rdwr);
52 int readfile(char *file, char **buffer, int skipfirst);
53
54 #define RRD_READONLY    0
55 #define RRD_READWRITE   1
56
57 #endif
58
59 #ifdef  __cplusplus
60 }
61 #endif