diff options
author | Wez Furlong <wez@php.net> | 2003-04-17 01:29:45 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2003-04-17 01:29:45 +0000 |
commit | 25954d1d7259cced795089cf67a46c42a37eac03 (patch) | |
tree | bb8c0ab2ff520f50415e97cec497e16d427bf537 /ext/sqlite/php_sqlite.h | |
parent | 0c366c24e5d21ebd375d295b27ffebc6636497f7 (diff) | |
download | php-git-25954d1d7259cced795089cf67a46c42a37eac03.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r123706,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'ext/sqlite/php_sqlite.h')
-rw-r--r-- | ext/sqlite/php_sqlite.h | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/ext/sqlite/php_sqlite.h b/ext/sqlite/php_sqlite.h new file mode 100644 index 0000000000..3966c2d24c --- /dev/null +++ b/ext/sqlite/php_sqlite.h @@ -0,0 +1,74 @@ +/* + +----------------------------------------------------------------------+ + | PHP Version 4 | + +----------------------------------------------------------------------+ + | Copyright (c) 1997-2002 The PHP Group | + +----------------------------------------------------------------------+ + | This source file is subject to version 2.02 of the PHP license, | + | that is bundled with this package in the file LICENSE, and is | + | available at through the world-wide-web at | + | http://www.php.net/license/2_02.txt. | + | If you did not receive a copy of the PHP license and are unable to | + | obtain it through the world-wide-web, please send a note to | + | license@php.net so we can mail you a copy immediately. | + +----------------------------------------------------------------------+ + | Author: | + +----------------------------------------------------------------------+ + + $Id$ +*/ + +#ifndef PHP_SQLITE_H +#define PHP_SQLITE_H + +extern zend_module_entry sqlite_module_entry; +#define phpext_sqlite_ptr &sqlite_module_entry + +#ifdef PHP_WIN32 +#define PHP_SQLITE_API __declspec(dllexport) +#else +#define PHP_SQLITE_API +#endif + +#ifdef ZTS +#include "TSRM.h" +#endif + +PHP_MINIT_FUNCTION(sqlite); +PHP_MSHUTDOWN_FUNCTION(sqlite); +PHP_RINIT_FUNCTION(sqlite); +PHP_RSHUTDOWN_FUNCTION(sqlite); +PHP_MINFO_FUNCTION(sqlite); + +PHP_FUNCTION(sqlite_open); +PHP_FUNCTION(sqlite_close); +PHP_FUNCTION(sqlite_query); +PHP_FUNCTION(sqlite_fetch_array); + +PHP_FUNCTION(sqlite_num_rows); +PHP_FUNCTION(sqlite_num_fields); +PHP_FUNCTION(sqlite_field_name); +PHP_FUNCTION(sqlite_seek); + +PHP_FUNCTION(sqlite_libversion); +PHP_FUNCTION(sqlite_libencoding); + +PHP_FUNCTION(sqlite_changes); +PHP_FUNCTION(sqlite_last_insert_rowid); + +#ifdef ZTS +#define SQLITE_G(v) TSRMG(sqlite_globals_id, zend_sqlite_globals *, v) +#else +#define SQLITE_G(v) (sqlite_globals.v) +#endif + +#endif + + +/* + * Local variables: + * tab-width: 4 + * c-basic-offset: 4 + * indent-tabs-mode: t + * End: + */ |