xref: /php-src/ext/com_dotnet/php_com_dotnet.h (revision 01b3fc03)
1 /*
2    +----------------------------------------------------------------------+
3    | Copyright (c) The PHP Group                                          |
4    +----------------------------------------------------------------------+
5    | This source file is subject to version 3.01 of the PHP license,      |
6    | that is bundled with this package in the file LICENSE, and is        |
7    | available through the world-wide-web at the following url:           |
8    | https://www.php.net/license/3_01.txt                                 |
9    | If you did not receive a copy of the PHP license and are unable to   |
10    | obtain it through the world-wide-web, please send a note to          |
11    | license@php.net so we can mail you a copy immediately.               |
12    +----------------------------------------------------------------------+
13    | Author: Wez Furlong <wez@thebrainroom.com>                           |
14    +----------------------------------------------------------------------+
15  */
16 
17 #ifndef PHP_COM_DOTNET_H
18 #define PHP_COM_DOTNET_H
19 
20 extern zend_module_entry com_dotnet_module_entry;
21 #define phpext_com_dotnet_ptr &com_dotnet_module_entry
22 
23 #ifdef ZTS
24 #include "TSRM.h"
25 #endif
26 
27 #define PHP_COM_DOTNET_API __declspec(dllexport)
28 
29 #include "php_version.h"
30 #define PHP_COM_DOTNET_VERSION PHP_VERSION
31 
32 PHP_MINIT_FUNCTION(com_dotnet);
33 PHP_MSHUTDOWN_FUNCTION(com_dotnet);
34 PHP_RINIT_FUNCTION(com_dotnet);
35 PHP_RSHUTDOWN_FUNCTION(com_dotnet);
36 PHP_MINFO_FUNCTION(com_dotnet);
37 
38 ZEND_BEGIN_MODULE_GLOBALS(com_dotnet)
39 	bool allow_dcom;
40 	bool autoreg_verbose;
41 	bool autoreg_on;
42 	bool autoreg_case_sensitive;
43 	void *dotnet_runtime_stuff; /* opaque to avoid cluttering up other modules */
44 	int code_page; /* default code_page if left unspecified */
45 	bool rshutdown_started;
46 ZEND_END_MODULE_GLOBALS(com_dotnet)
47 
48 #if defined(ZTS) && defined(COMPILE_DL_COM_DOTNET)
49 ZEND_TSRMLS_CACHE_EXTERN()
50 #endif
51 
52 ZEND_EXTERN_MODULE_GLOBALS(com_dotnet)
53 #define COMG(v) ZEND_MODULE_GLOBALS_ACCESSOR(com_dotnet, v)
54 
55 #endif	/* PHP_COM_DOTNET_H */
56