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 #ifdef HAVE_CONFIG_H
16 #include "php_config.h"
17 #endif
19 #if COMPILE_DL
20 #undef HAVE_RRDTOOL
21 #define HAVE_RRDTOOL 1
22 #endif
23 #ifndef DLEXPORT
24 #define DLEXPORT
25 #endif
27 #if HAVE_RRDTOOL
29 PHP_MINFO_FUNCTION(rrdtool);
31 extern zend_module_entry rrdtool_module_entry;
32 #define rrdtool_module_ptr &rrdtool_module_entry
33 #define phpext_rrdtool_ptr rrdtool_module_ptr
35 PHP_FUNCTION(rrd_error);
36 PHP_FUNCTION(rrd_clear_error);
37 PHP_FUNCTION(rrd_update);
38 PHP_FUNCTION(rrd_last);
39 PHP_FUNCTION(rrd_create);
40 PHP_FUNCTION(rrd_graph);
41 PHP_FUNCTION(rrd_fetch);
43 #else
45 #define phpext_rrdtool_ptr NULL
48 #endif /* HAVE_RRDTOOL */
50 #endif /* _PHP4_RRDTOOL_H */