php_com_dotnet.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. #ifndef PHP_COM_DOTNET_H
  17. #define PHP_COM_DOTNET_H
  18. extern zend_module_entry com_dotnet_module_entry;
  19. #define phpext_com_dotnet_ptr &com_dotnet_module_entry
  20. #ifdef ZTS
  21. #include "TSRM.h"
  22. #endif
  23. #define PHP_COM_DOTNET_API __declspec(dllexport)
  24. #include "php_version.h"
  25. #define PHP_COM_DOTNET_VERSION PHP_VERSION
  26. PHP_MINIT_FUNCTION(com_dotnet);
  27. PHP_MSHUTDOWN_FUNCTION(com_dotnet);
  28. PHP_RINIT_FUNCTION(com_dotnet);
  29. PHP_RSHUTDOWN_FUNCTION(com_dotnet);
  30. PHP_MINFO_FUNCTION(com_dotnet);
  31. ZEND_BEGIN_MODULE_GLOBALS(com_dotnet)
  32. bool allow_dcom;
  33. bool autoreg_verbose;
  34. bool autoreg_on;
  35. bool autoreg_case_sensitive;
  36. void *dotnet_runtime_stuff; /* opaque to avoid cluttering up other modules */
  37. int code_page; /* default code_page if left unspecified */
  38. bool rshutdown_started;
  39. ZEND_END_MODULE_GLOBALS(com_dotnet)
  40. #if defined(ZTS) && defined(COMPILE_DL_COM_DOTNET)
  41. ZEND_TSRMLS_CACHE_EXTERN()
  42. #endif
  43. ZEND_EXTERN_MODULE_GLOBALS(com_dotnet)
  44. #define COMG(v) ZEND_MODULE_GLOBALS_ACCESSOR(com_dotnet, v)
  45. #endif /* PHP_COM_DOTNET_H */