1 /* 2 +----------------------------------------------------------------------+ 3 | PHP Version 5 | 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 1997-2013 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 | Authors: Wez Furlong <wez@thebrainroom.com> | 16 | Tal Peer <tal@php.net> | 17 | Marcus Boerger <helly@php.net> | 18 +----------------------------------------------------------------------+ 19 20 $Id$ 21 */ 22 23 #ifndef PHP_SQLITE_H 24 #define PHP_SQLITE_H 25 26 extern zend_module_entry sqlite_module_entry; 27 #define phpext_sqlite_ptr &sqlite_module_entry 28 29 #ifdef ZTS 30 #include "TSRM.h" 31 #endif 32 33 PHP_MINIT_FUNCTION(sqlite); 34 PHP_MSHUTDOWN_FUNCTION(sqlite); 35 PHP_RSHUTDOWN_FUNCTION(sqlite); 36 PHP_MINFO_FUNCTION(sqlite); 37 38 PHP_FUNCTION(sqlite_open); 39 PHP_FUNCTION(sqlite_popen); 40 PHP_FUNCTION(sqlite_close); 41 PHP_FUNCTION(sqlite_query); 42 PHP_FUNCTION(sqlite_exec); 43 PHP_FUNCTION(sqlite_unbuffered_query); 44 PHP_FUNCTION(sqlite_array_query); 45 PHP_FUNCTION(sqlite_single_query); 46 47 PHP_FUNCTION(sqlite_fetch_array); 48 PHP_FUNCTION(sqlite_fetch_object); 49 PHP_FUNCTION(sqlite_fetch_single); 50 PHP_FUNCTION(sqlite_fetch_all); 51 PHP_FUNCTION(sqlite_current); 52 PHP_FUNCTION(sqlite_column); 53 54 PHP_FUNCTION(sqlite_num_rows); 55 PHP_FUNCTION(sqlite_num_fields); 56 PHP_FUNCTION(sqlite_field_name); 57 PHP_FUNCTION(sqlite_seek); 58 PHP_FUNCTION(sqlite_rewind); 59 PHP_FUNCTION(sqlite_next); 60 PHP_FUNCTION(sqlite_prev); 61 PHP_FUNCTION(sqlite_key); 62 63 PHP_FUNCTION(sqlite_valid); 64 PHP_FUNCTION(sqlite_has_prev); 65 66 PHP_FUNCTION(sqlite_libversion); 67 PHP_FUNCTION(sqlite_libencoding); 68 69 PHP_FUNCTION(sqlite_changes); 70 PHP_FUNCTION(sqlite_last_insert_rowid); 71 72 PHP_FUNCTION(sqlite_escape_string); 73 74 PHP_FUNCTION(sqlite_busy_timeout); 75 76 PHP_FUNCTION(sqlite_last_error); 77 PHP_FUNCTION(sqlite_error_string); 78 79 PHP_FUNCTION(sqlite_create_aggregate); 80 PHP_FUNCTION(sqlite_create_function); 81 PHP_FUNCTION(sqlite_udf_decode_binary); 82 PHP_FUNCTION(sqlite_udf_encode_binary); 83 84 PHP_FUNCTION(sqlite_factory); 85 86 PHP_FUNCTION(sqlite_fetch_column_types); 87 88 ZEND_BEGIN_MODULE_GLOBALS(sqlite) 89 long assoc_case; 90 ZEND_END_MODULE_GLOBALS(sqlite) 91 92 #ifdef ZTS 93 #define SQLITE_G(v) TSRMG(sqlite_globals_id, zend_sqlite_globals *, v) 94 #else 95 #define SQLITE_G(v) (sqlite_globals.v) 96 #endif 97 98 #endif 99 100 101 /* 102 * Local variables: 103 * tab-width: 4 104 * c-basic-offset: 4 105 * indent-tabs-mode: t 106 * End: 107 */ 108