Code

lets have just a single rrdtool extension annd not two ...
[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 _PHP_RRDTOOL_H
13 #define _PHP_RRDTOOL_H
15 #ifdef HAVE_CONFIG_H
16 #include "php_config.h"
17 #endif
19 #ifdef PHP_WIN32
20 #ifdef PHP_RRDTOOL_EXPORTS
21 #define PHP_RRDTOOL_API __declspec(dllexport)
22 #else
23 #define PHP_RRDTOOL_API __declspec(dllimport)
24 #endif
25 #else
26 #define PHP_RRDTOOL_API
27 #endif
29 #if HAVE_RRDTOOL
31 extern zend_module_entry rrdtool_module_entry;
32 #define rrdtool_module_ptr &rrdtool_module_entry
34 #ifdef ZTS
35 #include "TSRM.h"
36 #endif
38 #define RRDTOOL_LOGO_GUID              "PHP25B1F7E8-916B-11D9-9A54-000A95AE92DA"
40 /* If you declare any globals in php_rrdtool.h uncomment this:
41 ZEND_BEGIN_MODULE_GLOBALS(rrdtool)
43 ZEND_END_MODULE_GLOBALS(rrdtool)
44  */
46 PHP_MINIT_FUNCTION(rrdtool);
47 PHP_MSHUTDOWN_FUNCTION(rrdtool);
48 PHP_MINFO_FUNCTION(rrdtool);
50 PHP_FUNCTION(rrd_graph);
51 PHP_FUNCTION(rrd_fetch);
52 PHP_FUNCTION(rrd_error);
53 PHP_FUNCTION(rrd_clear_error);
54 PHP_FUNCTION(rrd_update);
55 PHP_FUNCTION(rrd_last);
56 PHP_FUNCTION(rrd_create);
57 PHP_FUNCTION(rrdtool_info);
58 PHP_FUNCTION(rrdtool_logo_guid);
60 #else
62 #define rrdtool_module_ptr NULL
65 #endif /* HAVE_RRDTOOL */
67 #define phpext_rrdtool_ptr rrdtool_module_ptr
69 #endif  /* _PHP_RRDTOOL_H */