xref: /PHP-7.2/ext/pdo_odbc/php_pdo_odbc.h (revision 7a7ec01a)
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 
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 #include "php_version.h"
28 #define PHP_PDO_ODBC_VERSION PHP_VERSION
29 
30 #ifdef ZTS
31 #include "TSRM.h"
32 #endif
33 
34 PHP_MINIT_FUNCTION(pdo_odbc);
35 PHP_MSHUTDOWN_FUNCTION(pdo_odbc);
36 PHP_RINIT_FUNCTION(pdo_odbc);
37 PHP_RSHUTDOWN_FUNCTION(pdo_odbc);
38 PHP_MINFO_FUNCTION(pdo_odbc);
39 
40 /*
41   	Declare any global variables you may need between the BEGIN
42 	and END macros here:
43 
44 ZEND_BEGIN_MODULE_GLOBALS(pdo_odbc)
45 	long  global_value;
46 	char *global_string;
47 ZEND_END_MODULE_GLOBALS(pdo_odbc)
48 */
49 
50 #ifdef ZTS
51 #define PDO_ODBC_G(v) TSRMG(pdo_odbc_globals_id, zend_pdo_odbc_globals *, v)
52 #else
53 #define PDO_ODBC_G(v) (pdo_odbc_globals.v)
54 #endif
55 
56 #endif	/* PHP_PDO_ODBC_H */
57 
58 
59 /*
60  * Local variables:
61  * tab-width: 4
62  * c-basic-offset: 4
63  * End:
64  * vim600: noet sw=4 ts=4 fdm=marker
65  * vim<600: noet sw=4 ts=4
66  */
67