Back to index

php5  5.3.10
php_pdo_sqlite.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   | Author: Wez Furlong <wez@php.net>                                    |
00016   +----------------------------------------------------------------------+
00017 */
00018 
00019 /* $Id: php_pdo_sqlite.h 321634 2012-01-01 13:15:04Z felipe $ */
00020 
00021 
00022 #ifndef PHP_PDO_SQLITE_H
00023 #define PHP_PDO_SQLITE_H
00024 
00025 extern zend_module_entry pdo_sqlite_module_entry;
00026 #define phpext_pdo_sqlite_ptr &pdo_sqlite_module_entry
00027 
00028 #ifdef ZTS
00029 #include "TSRM.h"
00030 #endif
00031 
00032 PHP_MINIT_FUNCTION(pdo_sqlite);
00033 PHP_MSHUTDOWN_FUNCTION(pdo_sqlite);
00034 PHP_RINIT_FUNCTION(pdo_sqlite);
00035 PHP_RSHUTDOWN_FUNCTION(pdo_sqlite);
00036 PHP_MINFO_FUNCTION(pdo_sqlite);
00037 
00038 /* 
00039        Declare any global variables you may need between the BEGIN
00040        and END macros here:     
00041 
00042 ZEND_BEGIN_MODULE_GLOBALS(pdo_sqlite)
00043        long  global_value;
00044        char *global_string;
00045 ZEND_END_MODULE_GLOBALS(pdo_sqlite)
00046 */
00047 
00048 /* In every utility function you add that needs to use variables 
00049    in php_pdo_sqlite_globals, call TSRMLS_FETCH(); after declaring other 
00050    variables used by that function, or better yet, pass in TSRMLS_CC
00051    after the last function argument and declare your utility function
00052    with TSRMLS_DC after the last declared argument.  Always refer to
00053    the globals in your function as PDO_SQLITE_G(variable).  You are 
00054    encouraged to rename these macros something shorter, see
00055    examples in any other php module directory.
00056 */
00057 
00058 #ifdef ZTS
00059 #define PDO_SQLITE_G(v) TSRMG(pdo_sqlite_globals_id, zend_pdo_sqlite_globals *, v)
00060 #else
00061 #define PDO_SQLITE_G(v) (pdo_sqlite_globals.v)
00062 #endif
00063 
00064 #endif /* PHP_PDO_SQLITE_H */
00065