php_xlswriter.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. +----------------------------------------------------------------------+
  3. | XlsWriter Extension |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 2017-2018 The Viest |
  6. +----------------------------------------------------------------------+
  7. | http://www.viest.me |
  8. +----------------------------------------------------------------------+
  9. | Author: viest <[email protected]> |
  10. +----------------------------------------------------------------------+
  11. */
  12. #ifndef PHP_VTIFUL_H
  13. #define PHP_VTIFUL_H
  14. #include "xlswriter.h"
  15. extern zend_module_entry xlswriter_module_entry;
  16. #define phpext_xlswriter_ptr &xlswriter_module_entry
  17. #define PHP_XLSWRITER_VERSION "1.2.3"
  18. #ifdef PHP_WIN32
  19. # define PHP_VTIFUL_API __declspec(dllexport)
  20. #elif defined(__GNUC__) && __GNUC__ >= 4
  21. # define PHP_VTIFUL_API __attribute__ ((visibility("default")))
  22. #else
  23. # define PHP_VTIFUL_API
  24. #endif
  25. #ifdef ZTS
  26. #include "TSRM.h"
  27. #endif
  28. #define VTIFUL_RESOURCE_NAME "xlsx"
  29. extern int le_xls_writer;
  30. #define VTIFUL_STARTUP_MODULE(module) ZEND_MODULE_STARTUP_N(xlsxwriter_##module)(INIT_FUNC_ARGS_PASSTHRU)
  31. #define VTIFUL_STARTUP_FUNCTION(module) ZEND_MINIT_FUNCTION(xlsxwriter_##module)
  32. void _php_vtiful_xls_close(zend_resource *rsrc TSRMLS_DC);
  33. #if defined(ZTS) && defined(COMPILE_DL_VTIFUL)
  34. ZEND_TSRMLS_CACHE_EXTERN();
  35. #endif
  36. PHP_MINIT_FUNCTION(xlswriter);
  37. PHP_MSHUTDOWN_FUNCTION(xlswriter);
  38. PHP_RINIT_FUNCTION(xlswriter);
  39. PHP_RSHUTDOWN_FUNCTION(xlswriter);
  40. PHP_MINFO_FUNCTION(xlswriter);
  41. #endif
  42. /*
  43. * Local variables:
  44. * tab-width: 4
  45. * c-basic-offset: 4
  46. * End:
  47. * vim600: noet sw=4 ts=4 fdm=marker
  48. * vim<600: noet sw=4 ts=4
  49. */