xref: /PHP-7.2/ext/com_dotnet/php_com_dotnet.h (revision 7a7ec01a)
1 /*
2    +----------------------------------------------------------------------+
3    | PHP Version 7                                                        |
4    +----------------------------------------------------------------------+
5    | Copyright (c) 1997-2018 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 /* $Id$ */
20 
21 #ifndef PHP_COM_DOTNET_H
22 #define PHP_COM_DOTNET_H
23 
24 extern zend_module_entry com_dotnet_module_entry;
25 #define phpext_com_dotnet_ptr &com_dotnet_module_entry
26 
27 #ifdef ZTS
28 #include "TSRM.h"
29 #endif
30 
31 #ifdef PHP_WIN32
32 # define PHP_COM_DOTNET_API __declspec(dllexport)
33 #elif defined(__GNUC__) && __GNUC__ >= 4
34 # define PHP_COM_DOTNET_API __attribute__ ((visibility("default")))
35 #else
36 # define PHP_COM_DOTNET_API
37 #endif
38 
39 #include "php_version.h"
40 #define PHP_COM_DOTNET_VERSION PHP_VERSION
41 
42 PHP_MINIT_FUNCTION(com_dotnet);
43 PHP_MSHUTDOWN_FUNCTION(com_dotnet);
44 PHP_RINIT_FUNCTION(com_dotnet);
45 PHP_RSHUTDOWN_FUNCTION(com_dotnet);
46 PHP_MINFO_FUNCTION(com_dotnet);
47 
48 ZEND_BEGIN_MODULE_GLOBALS(com_dotnet)
49 	zend_bool allow_dcom;
50 	zend_bool autoreg_verbose;
51 	zend_bool autoreg_on;
52 	zend_bool autoreg_case_sensitive;
53 	void *dotnet_runtime_stuff; /* opaque to avoid cluttering up other modules */
54 	int code_page; /* default code_page if left unspecified */
55 	zend_bool rshutdown_started;
56 ZEND_END_MODULE_GLOBALS(com_dotnet)
57 
58 #if defined(ZTS) && defined(COMPILE_DL_COM_DOTNET)
59 ZEND_TSRMLS_CACHE_EXTERN()
60 #endif
61 
62 extern ZEND_DECLARE_MODULE_GLOBALS(com_dotnet);
63 #define COMG(v) ZEND_MODULE_GLOBALS_ACCESSOR(com_dotnet, v)
64 
65 #endif	/* PHP_COM_DOTNET_H */
66 
67 /*
68  * Local variables:
69  * tab-width: 4
70  * c-basic-offset: 4
71  * End:
72  * vim600: noet sw=4 ts=4 fdm=marker
73  * vim<600: noet sw=4 ts=4
74  */
75