2000-07-17 21:29:30 +00:00
|
|
|
|
/*
|
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
|
| PHP version 4.0 |
|
|
|
|
|
+----------------------------------------------------------------------+
|
2001-02-26 06:11:02 +00:00
|
|
|
|
| Copyright (c) 1997-2001 The PHP Group |
|
2000-07-17 21:29:30 +00:00
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
|
| This source file is subject to version 2.02 of the PHP license, |
|
|
|
|
|
| that is bundled with this package in the file LICENSE, and is |
|
|
|
|
|
| available at through the world-wide-web at |
|
|
|
|
|
| http://www.php.net/license/2_02.txt. |
|
|
|
|
|
| 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);
|
|
|
|
|
static int _rollback_transaction(II_LINK *link);
|
|
|
|
|
static void _close_ii_link(II_LINK *link);
|
2000-11-13 22:23:16 +00:00
|
|
|
|
static void _close_ii_plink(zend_rsrc_list_entry *link);
|
2001-07-28 11:36:37 +00:00
|
|
|
|
static int php_ii_get_default_link(INTERNAL_FUNCTION_PARAMETERS TSRMLS_DC);
|
2000-07-17 21:29:30 +00:00
|
|
|
|
static void php_ii_set_default_link(int id);
|
|
|
|
|
static void php_ii_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent);
|
|
|
|
|
static char *php_ii_field_name(II_LINK *ii_link, int index);
|
|
|
|
|
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:
|
|
|
|
|
*/
|