root/ext/pdo_odbc/php_pdo_odbc.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   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 
  19 /* $Id$ */
  20 
  21 #ifndef PHP_PDO_ODBC_H
  22 #define PHP_PDO_ODBC_H
  23 
  24 extern zend_module_entry pdo_odbc_module_entry;
  25 #define phpext_pdo_odbc_ptr &pdo_odbc_module_entry
  26 
  27 #ifdef ZTS
  28 #include "TSRM.h"
  29 #endif
  30 
  31 PHP_MINIT_FUNCTION(pdo_odbc);
  32 PHP_MSHUTDOWN_FUNCTION(pdo_odbc);
  33 PHP_RINIT_FUNCTION(pdo_odbc);
  34 PHP_RSHUTDOWN_FUNCTION(pdo_odbc);
  35 PHP_MINFO_FUNCTION(pdo_odbc);
  36 
  37 /* 
  38         Declare any global variables you may need between the BEGIN
  39         and END macros here:     
  40 
  41 ZEND_BEGIN_MODULE_GLOBALS(pdo_odbc)
  42         long  global_value;
  43         char *global_string;
  44 ZEND_END_MODULE_GLOBALS(pdo_odbc)
  45 */
  46 
  47 /* In every utility function you add that needs to use variables 
  48    in php_pdo_odbc_globals, call TSRMLS_FETCH(); after declaring other 
  49    variables used by that function, or better yet, pass in TSRMLS_CC
  50    after the last function argument and declare your utility function
  51    with TSRMLS_DC after the last declared argument.  Always refer to
  52    the globals in your function as PDO_ODBC_G(variable).  You are 
  53    encouraged to rename these macros something shorter, see
  54    examples in any other php module directory.
  55 */
  56 
  57 #ifdef ZTS
  58 #define PDO_ODBC_G(v) TSRMG(pdo_odbc_globals_id, zend_pdo_odbc_globals *, v)
  59 #else
  60 #define PDO_ODBC_G(v) (pdo_odbc_globals.v)
  61 #endif
  62 
  63 #endif  /* PHP_PDO_ODBC_H */
  64 
  65 
  66 /*
  67  * Local variables:
  68  * tab-width: 4
  69  * c-basic-offset: 4
  70  * End:
  71  * vim600: noet sw=4 ts=4 fdm=marker
  72  * vim<600: noet sw=4 ts=4
  73  */

/* [<][>][^][v][top][bottom][index][help] */