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 #include "context.h"
23
24 ZEND_BEGIN_MODULE_GLOBALS(psi)
25 char *directory;
26 PSI_Context context;
27 ZEND_END_MODULE_GLOBALS(psi);
28
29 #define PSI_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(psi, v)
30
31 #if defined(ZTS) && defined(COMPILE_DL_PSI)
32 ZEND_TSRMLS_CACHE_EXTERN();
33 #endif
34
35 #endif /* PHP_PSI_H */
36
37
38 /*
39 * Local variables:
40 * tab-width: 4
41 * c-basic-offset: 4
42 * End:
43 * vim600: noet sw=4 ts=4 fdm=marker
44 * vim<600: noet sw=4 ts=4
45 */