flush
[m6w6/ext-psi] / php_psi.h
1
2 #ifndef PHP_PSI_H
3 #define PHP_PSI_H
4
5 extern zend_module_entry psi_module_entry;
6 #define phpext_psi_ptr &psi_module_entry
7
8 #define PHP_PSI_VERSION "0.1.0"
9
10 #ifdef PHP_WIN32
11 # define PHP_PSI_API __declspec(dllexport)
12 #elif defined(__GNUC__) && __GNUC__ >= 4
13 # define PHP_PSI_API __attribute__ ((visibility("default")))
14 #else
15 # define PHP_PSI_API
16 #endif
17
18 #ifdef ZTS
19 #include "TSRM.h"
20 #endif
21
22 ZEND_BEGIN_MODULE_GLOBALS(psi)
23 char *directory;
24 void *context;
25 ZEND_END_MODULE_GLOBALS(psi);
26
27 #define PSI_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(psi, v)
28
29 #if defined(ZTS) && defined(COMPILE_DL_PSI)
30 ZEND_TSRMLS_CACHE_EXTERN();
31 #endif
32
33 #endif /* PHP_PSI_H */
34
35
36 /*
37 * Local variables:
38 * tab-width: 4
39 * c-basic-offset: 4
40 * End:
41 * vim600: noet sw=4 ts=4 fdm=marker
42 * vim<600: noet sw=4 ts=4
43 */