|
| 1 | +/* |
| 2 | + +----------------------------------------------------------------------+ |
| 3 | + | PHP Version 4 | |
| 4 | + +----------------------------------------------------------------------+ |
| 5 | + | Copyright (c) 1997-2002 The PHP Group | |
| 6 | + +----------------------------------------------------------------------+ |
| 7 | + | This source file is subject to version 2.02 of the PHP license, | |
| 8 | + | that is bundled with this package in the file LICENSE, and is | |
| 9 | + | available at through the world-wide-web at | |
| 10 | + | http://www.php.net/license/2_02.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: | |
| 16 | + +----------------------------------------------------------------------+ |
| 17 | +
|
| 18 | + $Id$ |
| 19 | +*/ |
| 20 | + |
| 21 | +#ifndef PHP_SQLITE_H |
| 22 | +#define PHP_SQLITE_H |
| 23 | + |
| 24 | +extern zend_module_entry sqlite_module_entry; |
| 25 | +#define phpext_sqlite_ptr &sqlite_module_entry |
| 26 | + |
| 27 | +#ifdef PHP_WIN32 |
| 28 | +#define PHP_SQLITE_API __declspec(dllexport) |
| 29 | +#else |
| 30 | +#define PHP_SQLITE_API |
| 31 | +#endif |
| 32 | + |
| 33 | +#ifdef ZTS |
| 34 | +#include "TSRM.h" |
| 35 | +#endif |
| 36 | + |
| 37 | +PHP_MINIT_FUNCTION(sqlite); |
| 38 | +PHP_MSHUTDOWN_FUNCTION(sqlite); |
| 39 | +PHP_RINIT_FUNCTION(sqlite); |
| 40 | +PHP_RSHUTDOWN_FUNCTION(sqlite); |
| 41 | +PHP_MINFO_FUNCTION(sqlite); |
| 42 | + |
| 43 | +PHP_FUNCTION(sqlite_open); |
| 44 | +PHP_FUNCTION(sqlite_close); |
| 45 | +PHP_FUNCTION(sqlite_query); |
| 46 | +PHP_FUNCTION(sqlite_fetch_array); |
| 47 | + |
| 48 | +PHP_FUNCTION(sqlite_num_rows); |
| 49 | +PHP_FUNCTION(sqlite_num_fields); |
| 50 | +PHP_FUNCTION(sqlite_field_name); |
| 51 | +PHP_FUNCTION(sqlite_seek); |
| 52 | + |
| 53 | +PHP_FUNCTION(sqlite_libversion); |
| 54 | +PHP_FUNCTION(sqlite_libencoding); |
| 55 | + |
| 56 | +PHP_FUNCTION(sqlite_changes); |
| 57 | +PHP_FUNCTION(sqlite_last_insert_rowid); |
| 58 | + |
| 59 | +#ifdef ZTS |
| 60 | +#define SQLITE_G(v) TSRMG(sqlite_globals_id, zend_sqlite_globals *, v) |
| 61 | +#else |
| 62 | +#define SQLITE_G(v) (sqlite_globals.v) |
| 63 | +#endif |
| 64 | + |
| 65 | +#endif |
| 66 | + |
| 67 | + |
| 68 | +/* |
| 69 | + * Local variables: |
| 70 | + * tab-width: 4 |
| 71 | + * c-basic-offset: 4 |
| 72 | + * indent-tabs-mode: t |
| 73 | + * End: |
| 74 | + */ |
0 commit comments