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.

114 lines
3.2 KiB

21 years ago
22 years ago
23 years ago
23 years ago
20 years ago
  1. /*
  2. +----------------------------------------------------------------------+
  3. | PHP Version 5 |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 1997-2005 The PHP Group |
  6. +----------------------------------------------------------------------+
  7. | This source file is subject to version 3.0 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_0.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 PHP_WIN32
  26. #define PHP_SQLITE_API __declspec(dllexport)
  27. #else
  28. #define PHP_SQLITE_API
  29. #endif
  30. #ifdef ZTS
  31. #include "TSRM.h"
  32. #endif
  33. PHP_MINIT_FUNCTION(sqlite);
  34. PHP_MSHUTDOWN_FUNCTION(sqlite);
  35. PHP_RINIT_FUNCTION(sqlite);
  36. PHP_RSHUTDOWN_FUNCTION(sqlite);
  37. PHP_MINFO_FUNCTION(sqlite);
  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. PHP_FUNCTION(sqlite_fetch_array);
  47. PHP_FUNCTION(sqlite_fetch_object);
  48. PHP_FUNCTION(sqlite_fetch_single);
  49. PHP_FUNCTION(sqlite_fetch_all);
  50. PHP_FUNCTION(sqlite_current);
  51. PHP_FUNCTION(sqlite_column);
  52. PHP_FUNCTION(sqlite_num_rows);
  53. PHP_FUNCTION(sqlite_num_fields);
  54. PHP_FUNCTION(sqlite_field_name);
  55. PHP_FUNCTION(sqlite_seek);
  56. PHP_FUNCTION(sqlite_rewind);
  57. PHP_FUNCTION(sqlite_next);
  58. PHP_FUNCTION(sqlite_prev);
  59. PHP_FUNCTION(sqlite_key);
  60. PHP_FUNCTION(sqlite_valid);
  61. PHP_FUNCTION(sqlite_has_prev);
  62. PHP_FUNCTION(sqlite_libversion);
  63. PHP_FUNCTION(sqlite_libencoding);
  64. PHP_FUNCTION(sqlite_changes);
  65. PHP_FUNCTION(sqlite_last_insert_rowid);
  66. PHP_FUNCTION(sqlite_escape_string);
  67. PHP_FUNCTION(sqlite_busy_timeout);
  68. PHP_FUNCTION(sqlite_last_error);
  69. PHP_FUNCTION(sqlite_error_string);
  70. PHP_FUNCTION(sqlite_create_aggregate);
  71. PHP_FUNCTION(sqlite_create_function);
  72. PHP_FUNCTION(sqlite_udf_decode_binary);
  73. PHP_FUNCTION(sqlite_udf_encode_binary);
  74. PHP_FUNCTION(sqlite_factory);
  75. PHP_FUNCTION(sqlite_fetch_column_types);
  76. ZEND_BEGIN_MODULE_GLOBALS(sqlite)
  77. long assoc_case;
  78. ZEND_END_MODULE_GLOBALS(sqlite)
  79. #ifdef ZTS
  80. #define SQLITE_G(v) TSRMG(sqlite_globals_id, zend_sqlite_globals *, v)
  81. #else
  82. #define SQLITE_G(v) (sqlite_globals.v)
  83. #endif
  84. #endif
  85. /*
  86. * Local variables:
  87. * tab-width: 4
  88. * c-basic-offset: 4
  89. * indent-tabs-mode: t
  90. * End:
  91. */