Code

Initial revision
[rrdtool-all.git] / contrib / php4 / php_rrdtool.h
1 /*
2  * php_rrdtool.h
3  *
4  * php4 rrdtool module.  
5  *
6  * Joe Miller, <joeym@inficad.com>,<joeym@ibizcorp.com>, 7/19/2000
7  *
8  * $Id$
9  *
10  */
12 #ifndef _PHP4_RRDTOOL_H
13 #define _PHP4_RRDTOOL_H
15 #if COMPILE_DL
16 #undef HAVE_RRDTOOL
17 #define HAVE_RRDTOOL 1
18 #endif
19 #ifndef DLEXPORT
20 #define DLEXPORT
21 #endif
23 #if HAVE_RRDTOOL
25 PHP_MINFO_FUNCTION(rrdtool);
27 extern zend_module_entry rrdtool_module_entry;
28 #define rrdtool_module_ptr &rrdtool_module_entry
29 #define phpext_rrdtool_ptr rrdtool_module_ptr
31 PHP_FUNCTION(rrd_error);
32 PHP_FUNCTION(rrd_clear_error);
33 PHP_FUNCTION(rrd_update);
34 PHP_FUNCTION(rrd_last);
35 PHP_FUNCTION(rrd_create);
36 PHP_FUNCTION(rrd_graph);
37 PHP_FUNCTION(rrd_fetch);
39 #else
41 #define phpext_rrdtool_ptr NULL
44 #endif /* HAVE_RRDTOOL */
46 #endif  /* _PHP4_RRDTOOL_H */