php_birdstep.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /*
  2. +----------------------------------------------------------------------+
  3. | PHP Version 5 |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 1997-2016 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: Nikolay P. Romanyuk <mag@redcom.ru> |
  16. +----------------------------------------------------------------------+
  17. */
  18. /* $Id$ */
  19. #ifndef PHP_BIRDSTEP_H
  20. #define PHP_BIRDSTEP_H
  21. #if defined(HAVE_BIRDSTEP) && !HAVE_UODBC
  22. #define UNIX
  23. #include <sql.h>
  24. #include <sqlext.h>
  25. typedef struct VConn {
  26. HDBC hdbc;
  27. long index;
  28. } VConn;
  29. typedef struct {
  30. char name[32];
  31. char *value;
  32. long vallen;
  33. SDWORD valtype;
  34. } VResVal;
  35. typedef struct Vresult {
  36. HSTMT hstmt;
  37. VConn *conn;
  38. long index;
  39. VResVal *values;
  40. long numcols;
  41. int fetched;
  42. } Vresult;
  43. typedef struct {
  44. long num_links;
  45. long max_links;
  46. int le_link,le_result;
  47. } birdstep_module;
  48. extern zend_module_entry birdstep_module_entry;
  49. #define birdstep_module_ptr &birdstep_module_entry
  50. /* birdstep.c functions */
  51. PHP_MINIT_FUNCTION(birdstep);
  52. PHP_RINIT_FUNCTION(birdstep);
  53. PHP_MINFO_FUNCTION(birdstep);
  54. PHP_MSHUTDOWN_FUNCTION(birdstep);
  55. PHP_FUNCTION(birdstep_connect);
  56. PHP_FUNCTION(birdstep_close);
  57. PHP_FUNCTION(birdstep_exec);
  58. PHP_FUNCTION(birdstep_fetch);
  59. PHP_FUNCTION(birdstep_result);
  60. PHP_FUNCTION(birdstep_freeresult);
  61. PHP_FUNCTION(birdstep_autocommit);
  62. PHP_FUNCTION(birdstep_off_autocommit);
  63. PHP_FUNCTION(birdstep_commit);
  64. PHP_FUNCTION(birdstep_rollback);
  65. PHP_FUNCTION(birdstep_fieldnum);
  66. PHP_FUNCTION(birdstep_fieldname);
  67. extern birdstep_module php_birdstep_module;
  68. #else
  69. #define birdstep_module_ptr NULL
  70. #endif /* HAVE_BIRDSTEP */
  71. #endif /* PHP_BIRDSTEP_H */
  72. /*
  73. * Local variables:
  74. * tab-width: 4
  75. * c-basic-offset: 4
  76. * End:
  77. */