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.

89 lines
2.9 KiB

  1. /*
  2. +----------------------------------------------------------------------+
  3. | PHP version 4.0 |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 1997-2001 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: Zeev Suraski <zeev@zend.com> |
  16. +----------------------------------------------------------------------+
  17. */
  18. /* $Id$ */
  19. #ifndef PHP_SYBASE_DB_H
  20. #define PHP_SYBASE_DB_H
  21. #if HAVE_SYBASE
  22. extern zend_module_entry sybase_module_entry;
  23. #define sybase_module_ptr &sybase_module_entry
  24. PHP_MINIT_FUNCTION(sybase);
  25. PHP_RINIT_FUNCTION(sybase);
  26. PHP_MSHUTDOWN_FUNCTION(sybase);
  27. PHP_RSHUTDOWN_FUNCTION(sybase);
  28. PHP_MINFO_FUNCTION(sybase);
  29. PHP_FUNCTION(sybase_connect);
  30. PHP_FUNCTION(sybase_pconnect);
  31. PHP_FUNCTION(sybase_close);
  32. PHP_FUNCTION(sybase_select_db);
  33. PHP_FUNCTION(sybase_query);
  34. PHP_FUNCTION(sybase_free_result);
  35. PHP_FUNCTION(sybase_get_last_message);
  36. PHP_FUNCTION(sybase_num_rows);
  37. PHP_FUNCTION(sybase_num_fields);
  38. PHP_FUNCTION(sybase_fetch_row);
  39. PHP_FUNCTION(sybase_fetch_array);
  40. PHP_FUNCTION(sybase_fetch_object);
  41. PHP_FUNCTION(sybase_data_seek);
  42. PHP_FUNCTION(sybase_affected_rows);
  43. PHP_FUNCTION(sybase_result);
  44. PHP_FUNCTION(sybase_field_seek);
  45. PHP_FUNCTION(sybase_min_error_severity);
  46. PHP_FUNCTION(sybase_min_message_severity);
  47. PHP_FUNCTION(sybase_db_query);
  48. PHP_FUNCTION(sybase_list_fields);
  49. PHP_FUNCTION(sybase_fetch_lengths);
  50. PHP_FUNCTION(sybase_fetch_field);
  51. PHP_FUNCTION(sybase_field_seek);
  52. PHP_FUNCTION(sybase_free_result);
  53. PHP_FUNCTION(sybase_field_name);
  54. PHP_FUNCTION(sybase_field_table);
  55. PHP_FUNCTION(sybase_field_len);
  56. PHP_FUNCTION(sybase_field_type);
  57. PHP_FUNCTION(sybase_field_flags);
  58. typedef struct {
  59. long default_link;
  60. long num_links,num_persistent;
  61. long max_links,max_persistent;
  62. long allow_persistent;
  63. char *appname;
  64. char *server_message;
  65. int le_link,le_plink,le_result;
  66. long min_error_severity,min_message_severity;
  67. long cfg_min_error_severity,cfg_min_message_severity;
  68. long compatability_mode;
  69. } sybase_module;
  70. extern sybase_module php_sybase_module;
  71. #else
  72. #define sybase_module_ptr NULL
  73. #endif
  74. #define phpext_sybase_ptr sybase_module_ptr
  75. #endif /* PHP_SYBASE_DB_H */