xref: /PHP-7.3/ext/pdo_sqlite/php_pdo_sqlite.h (revision 1c850bfc)
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.01 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_01.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 #ifndef PHP_PDO_SQLITE_H
20 #define PHP_PDO_SQLITE_H
21 
22 extern zend_module_entry pdo_sqlite_module_entry;
23 #define phpext_pdo_sqlite_ptr &pdo_sqlite_module_entry
24 
25 #include "php_version.h"
26 #define PHP_PDO_SQLITE_VERSION PHP_VERSION
27 
28 #ifdef ZTS
29 #include "TSRM.h"
30 #endif
31 
32 PHP_MINIT_FUNCTION(pdo_sqlite);
33 PHP_MSHUTDOWN_FUNCTION(pdo_sqlite);
34 PHP_RINIT_FUNCTION(pdo_sqlite);
35 PHP_RSHUTDOWN_FUNCTION(pdo_sqlite);
36 PHP_MINFO_FUNCTION(pdo_sqlite);
37 
38 /*
39   	Declare any global variables you may need between the BEGIN
40 	and END macros here:
41 
42 ZEND_BEGIN_MODULE_GLOBALS(pdo_sqlite)
43 	long  global_value;
44 	char *global_string;
45 ZEND_END_MODULE_GLOBALS(pdo_sqlite)
46 */
47 
48 #ifdef ZTS
49 #define PDO_SQLITE_G(v) TSRMG(pdo_sqlite_globals_id, zend_pdo_sqlite_globals *, v)
50 #else
51 #define PDO_SQLITE_G(v) (pdo_sqlite_globals.v)
52 #endif
53 
54 #endif	/* PHP_PDO_SQLITE_H */
55