Back to index

php5  5.3.10
php_birdstep.h
Go to the documentation of this file.
00001 /*
00002    +----------------------------------------------------------------------+
00003    | PHP Version 5                                                        |
00004    +----------------------------------------------------------------------+
00005    | Copyright (c) 1997-2012 The PHP Group                                |
00006    +----------------------------------------------------------------------+
00007    | This source file is subject to version 3.01 of the PHP license,      |
00008    | that is bundled with this package in the file LICENSE, and is        |
00009    | available through the world-wide-web at the following url:           |
00010    | http://www.php.net/license/3_01.txt                                  |
00011    | If you did not receive a copy of the PHP license and are unable to   |
00012    | obtain it through the world-wide-web, please send a note to          |
00013    | license@php.net so we can mail you a copy immediately.               |
00014    +----------------------------------------------------------------------+
00015    | Authors: Nikolay P. Romanyuk <mag@redcom.ru>                         |
00016    +----------------------------------------------------------------------+
00017 */
00018 
00019 /* $Id: php_birdstep.h 321634 2012-01-01 13:15:04Z felipe $ */
00020 
00021 #ifndef PHP_BIRDSTEP_H
00022 #define PHP_BIRDSTEP_H
00023 
00024 #if defined(HAVE_BIRDSTEP) && !HAVE_UODBC
00025 #define UNIX
00026 #include <sql.h>
00027 #include <sqlext.h>
00028 
00029 typedef struct VConn {
00030        HDBC    hdbc;
00031        long    index;
00032 } VConn;
00033 
00034 typedef struct {
00035        char name[32];
00036        char *value;
00037        long vallen;
00038        SDWORD valtype;
00039 } VResVal;
00040 
00041 typedef struct Vresult {
00042        HSTMT   hstmt;
00043        VConn   *conn; 
00044        long    index;
00045        VResVal *values;
00046        long    numcols;
00047        int     fetched;
00048 } Vresult;
00049 
00050 typedef struct {
00051        long num_links;
00052        long max_links;
00053        int le_link,le_result;
00054 } birdstep_module;
00055 
00056 extern zend_module_entry birdstep_module_entry;
00057 #define birdstep_module_ptr &birdstep_module_entry
00058 
00059 /* birdstep.c functions */
00060 PHP_MINIT_FUNCTION(birdstep);
00061 PHP_RINIT_FUNCTION(birdstep);
00062 PHP_MINFO_FUNCTION(birdstep);
00063 PHP_MSHUTDOWN_FUNCTION(birdstep);
00064 
00065 PHP_FUNCTION(birdstep_connect);
00066 PHP_FUNCTION(birdstep_close);
00067 PHP_FUNCTION(birdstep_exec);
00068 PHP_FUNCTION(birdstep_fetch);
00069 PHP_FUNCTION(birdstep_result);
00070 PHP_FUNCTION(birdstep_freeresult);
00071 PHP_FUNCTION(birdstep_autocommit);
00072 PHP_FUNCTION(birdstep_off_autocommit);
00073 PHP_FUNCTION(birdstep_commit);
00074 PHP_FUNCTION(birdstep_rollback);
00075 PHP_FUNCTION(birdstep_fieldnum);
00076 PHP_FUNCTION(birdstep_fieldname);
00077 
00078 extern birdstep_module php_birdstep_module;
00079 
00080 #else
00081 
00082 #define birdstep_module_ptr NULL
00083 
00084 #endif /* HAVE_BIRDSTEP */
00085 #endif /* PHP_BIRDSTEP_H */
00086 
00087 /*
00088  * Local variables:
00089  * tab-width: 4
00090  * c-basic-offset: 4
00091  * End:
00092  */