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