root/ext/odbc/php_birdstep.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


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

/* [<][>][^][v][top][bottom][index][help] */