* document tabwidth option
[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(
42     double value);
43 #endif
44 #else                   /* Windows only */
45 #include <float.h>
46 #define isnan _isnan
47 #endif
48
49     void      rrd_free(
50     rrd_t *rrd);
51     void      rrd_init(
52     rrd_t *rrd);
53
54     int       rrd_open(
55     char *file_name,
56     rrd_t *rrd,
57     int rdwr);
58     int       readfile(
59     char *file,
60     char **buffer,
61     int skipfirst);
62
63 #define RRD_READONLY    0
64 #define RRD_READWRITE   1
65
66 #endif
67
68 #ifdef  __cplusplus
69 }
70 #endif