Back to index

php5  5.3.10
php_pdo_odbc.h
Go to the documentation of this file.
00001 /*
00002   +----------------------------------------------------------------------+
00003   | PHP Version 5                                                        |
00004   +----------------------------------------------------------------------+
00005   | Copyright (c) 1997-2012 The PHP Group                                |
00006   +----------------------------------------------------------------------+
00007   | This source file is subject to version 3.0 of the PHP license,       |
00008   | that is bundled with this package in the file LICENSE, and is        |
00009   | available through the world-wide-web at the following url:           |
00010   | http://www.php.net/license/3_0.txt.                                  |
00011   | If you did not receive a copy of the PHP license and are unable to   |
00012   | obtain it through the world-wide-web, please send a note to          |
00013   | license@php.net so we can mail you a copy immediately.               |
00014   +----------------------------------------------------------------------+
00015   | Author: Wez Furlong <wez@php.net>                                    |
00016   +----------------------------------------------------------------------+
00017 */
00018 
00019 /* $Id: php_pdo_odbc.h 321634 2012-01-01 13:15:04Z felipe $ */
00020 
00021 #ifndef PHP_PDO_ODBC_H
00022 #define PHP_PDO_ODBC_H
00023 
00024 extern zend_module_entry pdo_odbc_module_entry;
00025 #define phpext_pdo_odbc_ptr &pdo_odbc_module_entry
00026 
00027 #ifdef ZTS
00028 #include "TSRM.h"
00029 #endif
00030 
00031 PHP_MINIT_FUNCTION(pdo_odbc);
00032 PHP_MSHUTDOWN_FUNCTION(pdo_odbc);
00033 PHP_RINIT_FUNCTION(pdo_odbc);
00034 PHP_RSHUTDOWN_FUNCTION(pdo_odbc);
00035 PHP_MINFO_FUNCTION(pdo_odbc);
00036 
00037 /* 
00038        Declare any global variables you may need between the BEGIN
00039        and END macros here:     
00040 
00041 ZEND_BEGIN_MODULE_GLOBALS(pdo_odbc)
00042        long  global_value;
00043        char *global_string;
00044 ZEND_END_MODULE_GLOBALS(pdo_odbc)
00045 */
00046 
00047 /* In every utility function you add that needs to use variables 
00048    in php_pdo_odbc_globals, call TSRMLS_FETCH(); after declaring other 
00049    variables used by that function, or better yet, pass in TSRMLS_CC
00050    after the last function argument and declare your utility function
00051    with TSRMLS_DC after the last declared argument.  Always refer to
00052    the globals in your function as PDO_ODBC_G(variable).  You are 
00053    encouraged to rename these macros something shorter, see
00054    examples in any other php module directory.
00055 */
00056 
00057 #ifdef ZTS
00058 #define PDO_ODBC_G(v) TSRMG(pdo_odbc_globals_id, zend_pdo_odbc_globals *, v)
00059 #else
00060 #define PDO_ODBC_G(v) (pdo_odbc_globals.v)
00061 #endif
00062 
00063 #endif /* PHP_PDO_ODBC_H */
00064 
00065 
00066 /*
00067  * Local variables:
00068  * tab-width: 4
00069  * c-basic-offset: 4
00070  * End:
00071  * vim600: noet sw=4 ts=4 fdm=marker
00072  * vim<600: noet sw=4 ts=4
00073  */