Back to index

php5  5.3.10
php_sqlite3.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.01 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_01.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    | Authors: Scott MacVicar <scottmac@php.net>                           |
00016    +----------------------------------------------------------------------+
00017 */
00018 
00019 /* $Id: php_sqlite3.h 321634 2012-01-01 13:15:04Z felipe $ */
00020 
00021 #ifndef PHP_SQLITE3_H
00022 #define PHP_SQLITE3_H
00023 
00024 #define PHP_SQLITE3_VERSION  "0.7-dev"
00025 
00026 extern zend_module_entry sqlite3_module_entry;
00027 #define phpext_sqlite3_ptr &sqlite3_module_entry
00028 
00029 ZEND_BEGIN_MODULE_GLOBALS(sqlite3)
00030        char *extension_dir;
00031 ZEND_END_MODULE_GLOBALS(sqlite3)
00032 
00033 #ifdef ZTS
00034 # define SQLITE3G(v) TSRMG(sqlite3_globals_id, zend_sqlite3_globals *, v)
00035 #else
00036 # define SQLITE3G(v) (sqlite3_globals.v)
00037 #endif
00038 
00039 #define PHP_SQLITE3_ASSOC   1<<0
00040 #define PHP_SQLITE3_NUM            1<<1
00041 #define PHP_SQLITE3_BOTH    (PHP_SQLITE3_ASSOC|PHP_SQLITE3_NUM)
00042 
00043 #endif
00044 
00045 /*
00046  * Local variables:
00047  * tab-width: 4
00048  * c-basic-offset: 4
00049  * indent-tabs-mode: t
00050  * End:
00051  */