2000-07-17 21:29:30 +00:00
|
|
|
|
/*
|
|
|
|
|
+----------------------------------------------------------------------+
|
2004-01-08 17:33:29 +00:00
|
|
|
|
| PHP Version 5 |
|
2000-07-17 21:29:30 +00:00
|
|
|
|
+----------------------------------------------------------------------+
|
2004-01-08 17:33:29 +00:00
|
|
|
|
| Copyright (c) 1997-2004 The PHP Group |
|
2000-07-17 21:29:30 +00:00
|
|
|
|
+----------------------------------------------------------------------+
|
2003-06-10 20:04:29 +00:00
|
|
|
|
| This source file is subject to version 3.0 of the PHP license, |
|
2000-07-17 21:29:30 +00:00
|
|
|
|
| that is bundled with this package in the file LICENSE, and is |
|
2003-06-10 20:04:29 +00:00
|
|
|
|
| available through the world-wide-web at the following url: |
|
|
|
|
|
| http://www.php.net/license/3_0.txt. |
|
2000-07-17 21:29:30 +00:00
|
|
|
|
| If you did not receive a copy of the PHP license and are unable to |
|
|
|
|
|
| obtain it through the world-wide-web, please send a note to |
|
|
|
|
|
| license@php.net so we can mail you a copy immediately. |
|
|
|
|
|
+----------------------------------------------------------------------+
|
2000-08-25 15:56:41 +00:00
|
|
|
|
| Contributed by ECL IP'S Software & Services |
|
|
|
|
|
| http://www.eclips-software.com |
|
|
|
|
|
| mailto://idev@eclips-software.com |
|
2000-07-17 21:29:30 +00:00
|
|
|
|
| Author: David H<EFBFBD>not <henot@php.net> |
|
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
|
|
|
|
|
#ifndef II_H
|
|
|
|
|
#define II_H
|
|
|
|
|
|
|
|
|
|
#if HAVE_II
|
2000-11-13 22:23:16 +00:00
|
|
|
|
#include "php_ii.h"
|
2000-07-17 21:29:30 +00:00
|
|
|
|
#include "iiapi.h"
|
|
|
|
|
|
|
|
|
|
typedef struct _II_LINK {
|
2000-09-29 09:29:06 +00:00
|
|
|
|
int autocommit;
|
2000-07-17 21:29:30 +00:00
|
|
|
|
II_PTR connHandle;
|
|
|
|
|
II_PTR tranHandle;
|
|
|
|
|
II_PTR stmtHandle;
|
|
|
|
|
II_LONG fieldCount;
|
|
|
|
|
IIAPI_DESCRIPTOR *descriptor;
|
|
|
|
|
} II_LINK;
|
|
|
|
|
|
|
|
|
|
static int ii_sync(IIAPI_GENPARM *genParm);
|
|
|
|
|
static int ii_success(IIAPI_GENPARM *genParm);
|
|
|
|
|
#define II_FAIL 0
|
|
|
|
|
#define II_OK 1
|
|
|
|
|
#define II_NO_DATA 2
|
|
|
|
|
static int _close_statement(II_LINK *link);
|
2003-02-21 06:46:12 +00:00
|
|
|
|
static int _rollback_transaction(II_LINK *link TSRMLS_DC);
|
2001-08-07 20:13:54 +00:00
|
|
|
|
static void _close_ii_link(II_LINK *link TSRMLS_DC);
|
2001-07-31 05:44:11 +00:00
|
|
|
|
static void _close_ii_plink(zend_rsrc_list_entry *link TSRMLS_DC);
|
2001-07-30 21:02:27 +00:00
|
|
|
|
static int php_ii_get_default_link(INTERNAL_FUNCTION_PARAMETERS);
|
2001-08-07 20:13:54 +00:00
|
|
|
|
static void php_ii_set_default_link(int id TSRMLS_DC);
|
2000-07-17 21:29:30 +00:00
|
|
|
|
static void php_ii_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent);
|
2003-02-21 06:46:12 +00:00
|
|
|
|
static char *php_ii_field_name(II_LINK *ii_link, int index TSRMLS_DC);
|
2000-07-17 21:29:30 +00:00
|
|
|
|
static void php_ii_field_info(INTERNAL_FUNCTION_PARAMETERS, int info_type);
|
|
|
|
|
static void php_ii_fetch(INTERNAL_FUNCTION_PARAMETERS, II_LINK *ii_link, int result_type);
|
|
|
|
|
|
|
|
|
|
#endif /* HAVE_II */
|
|
|
|
|
#endif /* II_H */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Local variables:
|
|
|
|
|
* tab-width: 4
|
|
|
|
|
* c-basic-offset: 4
|
|
|
|
|
* End:
|
|
|
|
|
*/
|