php_com_dotnet.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*
  2. +----------------------------------------------------------------------+
  3. | PHP Version 5 |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 1997-2016 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. /* $Id$ */
  19. #ifndef PHP_COM_DOTNET_H
  20. #define PHP_COM_DOTNET_H
  21. extern zend_module_entry com_dotnet_module_entry;
  22. #define phpext_com_dotnet_ptr &com_dotnet_module_entry
  23. #ifdef ZTS
  24. #include "TSRM.h"
  25. #endif
  26. #ifdef PHP_WIN32
  27. # define PHP_COM_DOTNET_API __declspec(dllexport)
  28. #elif defined(__GNUC__) && __GNUC__ >= 4
  29. # define PHP_COM_DOTNET_API __attribute__ ((visibility("default")))
  30. #else
  31. # define PHP_COM_DOTNET_API
  32. #endif
  33. PHP_MINIT_FUNCTION(com_dotnet);
  34. PHP_MSHUTDOWN_FUNCTION(com_dotnet);
  35. PHP_RINIT_FUNCTION(com_dotnet);
  36. PHP_RSHUTDOWN_FUNCTION(com_dotnet);
  37. PHP_MINFO_FUNCTION(com_dotnet);
  38. ZEND_BEGIN_MODULE_GLOBALS(com_dotnet)
  39. zend_bool allow_dcom;
  40. zend_bool autoreg_verbose;
  41. zend_bool autoreg_on;
  42. zend_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. zend_bool rshutdown_started;
  46. ZEND_END_MODULE_GLOBALS(com_dotnet)
  47. #ifdef ZTS
  48. # define COMG(v) TSRMG(com_dotnet_globals_id, zend_com_dotnet_globals *, v)
  49. #else
  50. # define COMG(v) (com_dotnet_globals.v)
  51. #endif
  52. extern ZEND_DECLARE_MODULE_GLOBALS(com_dotnet);
  53. #endif /* PHP_COM_DOTNET_H */
  54. /*
  55. * Local variables:
  56. * tab-width: 4
  57. * c-basic-offset: 4
  58. * End:
  59. * vim600: noet sw=4 ts=4 fdm=marker
  60. * vim<600: noet sw=4 ts=4
  61. */