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.

97 lines
2.8 KiB

23 years ago
  1. /*
  2. +----------------------------------------------------------------------+
  3. | PHP Version 4 |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 1997-2003 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. | 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_unbuffered_query);
  43. PHP_FUNCTION(sqlite_fetch_array);
  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_has_more);
  53. PHP_FUNCTION(sqlite_libversion);
  54. PHP_FUNCTION(sqlite_libencoding);
  55. PHP_FUNCTION(sqlite_changes);
  56. PHP_FUNCTION(sqlite_last_insert_rowid);
  57. PHP_FUNCTION(sqlite_escape_string);
  58. PHP_FUNCTION(sqlite_busy_timeout);
  59. PHP_FUNCTION(sqlite_last_error);
  60. PHP_FUNCTION(sqlite_error_string);
  61. PHP_FUNCTION(sqlite_create_aggregate);
  62. PHP_FUNCTION(sqlite_create_function);
  63. ZEND_BEGIN_MODULE_GLOBALS(sqlite)
  64. int assoc_case;
  65. ZEND_END_MODULE_GLOBALS(sqlite)
  66. #ifdef ZTS
  67. #define SQLITE_G(v) TSRMG(sqlite_globals_id, zend_sqlite_globals *, v)
  68. #else
  69. #define SQLITE_G(v) (sqlite_globals.v)
  70. #endif
  71. #endif
  72. /*
  73. * Local variables:
  74. * tab-width: 4
  75. * c-basic-offset: 4
  76. * indent-tabs-mode: t
  77. * End:
  78. */