You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

107 lines
3.1 KiB

22 years ago
23 years ago
23 years ago
  1. /*
  2. +----------------------------------------------------------------------+
  3. | PHP Version 5 |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 1997-2009 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. $Id$
  20. */
  21. #ifndef PHP_SQLITE_H
  22. #define PHP_SQLITE_H
  23. extern zend_module_entry sqlite_module_entry;
  24. #define phpext_sqlite_ptr &sqlite_module_entry
  25. #ifdef ZTS
  26. #include "TSRM.h"
  27. #endif
  28. PHP_MINIT_FUNCTION(sqlite);
  29. PHP_MSHUTDOWN_FUNCTION(sqlite);
  30. PHP_RSHUTDOWN_FUNCTION(sqlite);
  31. PHP_MINFO_FUNCTION(sqlite);
  32. PHP_FUNCTION(sqlite_open);
  33. PHP_FUNCTION(sqlite_popen);
  34. PHP_FUNCTION(sqlite_close);
  35. PHP_FUNCTION(sqlite_query);
  36. PHP_FUNCTION(sqlite_exec);
  37. PHP_FUNCTION(sqlite_unbuffered_query);
  38. PHP_FUNCTION(sqlite_array_query);
  39. PHP_FUNCTION(sqlite_single_query);
  40. PHP_FUNCTION(sqlite_fetch_array);
  41. PHP_FUNCTION(sqlite_fetch_object);
  42. PHP_FUNCTION(sqlite_fetch_single);
  43. PHP_FUNCTION(sqlite_fetch_all);
  44. PHP_FUNCTION(sqlite_current);
  45. PHP_FUNCTION(sqlite_column);
  46. PHP_FUNCTION(sqlite_num_rows);
  47. PHP_FUNCTION(sqlite_num_fields);
  48. PHP_FUNCTION(sqlite_field_name);
  49. PHP_FUNCTION(sqlite_seek);
  50. PHP_FUNCTION(sqlite_rewind);
  51. PHP_FUNCTION(sqlite_next);
  52. PHP_FUNCTION(sqlite_prev);
  53. PHP_FUNCTION(sqlite_key);
  54. PHP_FUNCTION(sqlite_valid);
  55. PHP_FUNCTION(sqlite_has_prev);
  56. PHP_FUNCTION(sqlite_libversion);
  57. PHP_FUNCTION(sqlite_libencoding);
  58. PHP_FUNCTION(sqlite_changes);
  59. PHP_FUNCTION(sqlite_last_insert_rowid);
  60. PHP_FUNCTION(sqlite_escape_string);
  61. PHP_FUNCTION(sqlite_busy_timeout);
  62. PHP_FUNCTION(sqlite_last_error);
  63. PHP_FUNCTION(sqlite_error_string);
  64. PHP_FUNCTION(sqlite_create_aggregate);
  65. PHP_FUNCTION(sqlite_create_function);
  66. PHP_FUNCTION(sqlite_udf_decode_binary);
  67. PHP_FUNCTION(sqlite_udf_encode_binary);
  68. PHP_FUNCTION(sqlite_factory);
  69. PHP_FUNCTION(sqlite_fetch_column_types);
  70. ZEND_BEGIN_MODULE_GLOBALS(sqlite)
  71. long assoc_case;
  72. ZEND_END_MODULE_GLOBALS(sqlite)
  73. #ifdef ZTS
  74. #define SQLITE_G(v) TSRMG(sqlite_globals_id, zend_sqlite_globals *, v)
  75. #else
  76. #define SQLITE_G(v) (sqlite_globals.v)
  77. #endif
  78. #endif
  79. /*
  80. * Local variables:
  81. * tab-width: 4
  82. * c-basic-offset: 4
  83. * indent-tabs-mode: t
  84. * End:
  85. */