php_pdo_odbc.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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.0 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_0.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@php.net> |
  16. +----------------------------------------------------------------------+
  17. */
  18. #ifndef PHP_PDO_ODBC_H
  19. #define PHP_PDO_ODBC_H
  20. extern zend_module_entry pdo_odbc_module_entry;
  21. #define phpext_pdo_odbc_ptr &pdo_odbc_module_entry
  22. #include "php_version.h"
  23. #define PHP_PDO_ODBC_VERSION PHP_VERSION
  24. #ifdef ZTS
  25. #include "TSRM.h"
  26. #endif
  27. PHP_MINIT_FUNCTION(pdo_odbc);
  28. PHP_MSHUTDOWN_FUNCTION(pdo_odbc);
  29. PHP_RINIT_FUNCTION(pdo_odbc);
  30. PHP_RSHUTDOWN_FUNCTION(pdo_odbc);
  31. PHP_MINFO_FUNCTION(pdo_odbc);
  32. /*
  33. Declare any global variables you may need between the BEGIN
  34. and END macros here:
  35. ZEND_BEGIN_MODULE_GLOBALS(pdo_odbc)
  36. long global_value;
  37. char *global_string;
  38. ZEND_END_MODULE_GLOBALS(pdo_odbc)
  39. */
  40. #ifdef ZTS
  41. #define PDO_ODBC_G(v) TSRMG(pdo_odbc_globals_id, zend_pdo_odbc_globals *, v)
  42. #else
  43. #define PDO_ODBC_G(v) (pdo_odbc_globals.v)
  44. #endif
  45. #endif /* PHP_PDO_ODBC_H */
  46. /*
  47. * Local variables:
  48. * tab-width: 4
  49. * c-basic-offset: 4
  50. * End:
  51. * vim600: noet sw=4 ts=4 fdm=marker
  52. * vim<600: noet sw=4 ts=4
  53. */