php_pdo_odbc.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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.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. /* $Id$ */
  19. #ifndef PHP_PDO_ODBC_H
  20. #define PHP_PDO_ODBC_H
  21. extern zend_module_entry pdo_odbc_module_entry;
  22. #define phpext_pdo_odbc_ptr &pdo_odbc_module_entry
  23. #ifdef ZTS
  24. #include "TSRM.h"
  25. #endif
  26. PHP_MINIT_FUNCTION(pdo_odbc);
  27. PHP_MSHUTDOWN_FUNCTION(pdo_odbc);
  28. PHP_RINIT_FUNCTION(pdo_odbc);
  29. PHP_RSHUTDOWN_FUNCTION(pdo_odbc);
  30. PHP_MINFO_FUNCTION(pdo_odbc);
  31. /*
  32. Declare any global variables you may need between the BEGIN
  33. and END macros here:
  34. ZEND_BEGIN_MODULE_GLOBALS(pdo_odbc)
  35. long global_value;
  36. char *global_string;
  37. ZEND_END_MODULE_GLOBALS(pdo_odbc)
  38. */
  39. /* In every utility function you add that needs to use variables
  40. in php_pdo_odbc_globals, call TSRMLS_FETCH(); after declaring other
  41. variables used by that function, or better yet, pass in TSRMLS_CC
  42. after the last function argument and declare your utility function
  43. with TSRMLS_DC after the last declared argument. Always refer to
  44. the globals in your function as PDO_ODBC_G(variable). You are
  45. encouraged to rename these macros something shorter, see
  46. examples in any other php module directory.
  47. */
  48. #ifdef ZTS
  49. #define PDO_ODBC_G(v) TSRMG(pdo_odbc_globals_id, zend_pdo_odbc_globals *, v)
  50. #else
  51. #define PDO_ODBC_G(v) (pdo_odbc_globals.v)
  52. #endif
  53. #endif /* PHP_PDO_ODBC_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. */