2001-05-23 15:26:42 +02:00
|
|
|
/*
|
|
|
|
* PROGRAM: JRD Access Method
|
|
|
|
* MODULE: why_proto.h
|
2003-10-29 11:53:47 +01:00
|
|
|
* DESCRIPTION: Prototype header file for why.cpp
|
2001-05-23 15:26:42 +02:00
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Interbase Public
|
|
|
|
* License Version 1.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy
|
|
|
|
* of the License at http://www.Inprise.com/IPL.html
|
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an
|
|
|
|
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
|
|
|
|
* or implied. See the License for the specific language governing
|
|
|
|
* rights and limitations under the License.
|
|
|
|
*
|
|
|
|
* The Original Code was created by Inprise Corporation
|
|
|
|
* and its predecessors. Portions created by Inprise Corporation are
|
|
|
|
* Copyright (C) Inprise Corporation.
|
|
|
|
*
|
|
|
|
* All Rights Reserved.
|
|
|
|
* Contributor(s): ______________________________________.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef JRD_WHY_PROTO_H
|
|
|
|
#define JRD_WHY_PROTO_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef JRD_IBASE_H
|
2003-10-03 03:53:34 +02:00
|
|
|
ISC_STATUS API_ROUTINE isc_dsql_allocate_statement(ISC_STATUS *,
|
2003-01-22 17:37:59 +01:00
|
|
|
FRBRD **,
|
|
|
|
FRBRD **);
|
2003-10-03 03:53:34 +02:00
|
|
|
ISC_STATUS API_ROUTINE isc_dsql_alloc_statement2(ISC_STATUS *, FRBRD **,
|
2003-01-22 17:37:59 +01:00
|
|
|
FRBRD **);
|
2003-10-03 03:53:34 +02:00
|
|
|
ISC_STATUS API_ROUTINE isc_dsql_describe(ISC_STATUS *, FRBRD **, USHORT,
|
2001-05-23 15:26:42 +02:00
|
|
|
XSQLDA *);
|
2003-10-03 03:53:34 +02:00
|
|
|
ISC_STATUS API_ROUTINE isc_dsql_describe_bind(ISC_STATUS *, FRBRD **,
|
2001-05-23 15:26:42 +02:00
|
|
|
USHORT, XSQLDA *);
|
2003-10-03 03:53:34 +02:00
|
|
|
ISC_STATUS API_ROUTINE isc_dsql_execute2(ISC_STATUS *, FRBRD **,
|
2003-01-22 17:37:59 +01:00
|
|
|
FRBRD **, USHORT, XSQLDA *,
|
2001-05-23 15:26:42 +02:00
|
|
|
XSQLDA *);
|
2003-10-03 03:53:34 +02:00
|
|
|
ISC_STATUS API_ROUTINE isc_dsql_execute2_m(ISC_STATUS *, FRBRD **,
|
2003-01-22 17:37:59 +01:00
|
|
|
FRBRD **, USHORT, SCHAR *,
|
2001-05-23 15:26:42 +02:00
|
|
|
USHORT, USHORT, SCHAR *, USHORT,
|
|
|
|
SCHAR *, USHORT, USHORT,
|
|
|
|
SCHAR *);
|
2003-10-03 03:53:34 +02:00
|
|
|
ISC_STATUS API_ROUTINE isc_dsql_execute_immediate(ISC_STATUS *, FRBRD **,
|
2003-01-22 17:37:59 +01:00
|
|
|
FRBRD **, USHORT,
|
2001-05-23 15:26:42 +02:00
|
|
|
SCHAR *, USHORT,
|
|
|
|
XSQLDA *);
|
2003-10-03 03:53:34 +02:00
|
|
|
ISC_STATUS API_ROUTINE isc_dsql_exec_immed2(ISC_STATUS *, FRBRD **,
|
2003-01-22 17:37:59 +01:00
|
|
|
FRBRD **, USHORT,
|
2001-05-23 15:26:42 +02:00
|
|
|
SCHAR *, USHORT, XSQLDA *,
|
|
|
|
XSQLDA *);
|
2003-10-03 03:53:34 +02:00
|
|
|
ISC_STATUS API_ROUTINE isc_dsql_execute_immediate_m(ISC_STATUS *,
|
2003-01-22 17:37:59 +01:00
|
|
|
FRBRD **,
|
|
|
|
FRBRD **, USHORT,
|
2001-05-23 15:26:42 +02:00
|
|
|
SCHAR *, USHORT,
|
|
|
|
USHORT, SCHAR *,
|
|
|
|
USHORT, USHORT,
|
|
|
|
SCHAR *);
|
2003-10-03 03:53:34 +02:00
|
|
|
ISC_STATUS API_ROUTINE isc_dsql_exec_immed2_m(ISC_STATUS *, FRBRD **,
|
2003-01-22 17:37:59 +01:00
|
|
|
FRBRD **, USHORT,
|
2001-05-23 15:26:42 +02:00
|
|
|
SCHAR *, USHORT, USHORT,
|
|
|
|
SCHAR *, USHORT, USHORT,
|
|
|
|
SCHAR *, USHORT, SCHAR *,
|
|
|
|
USHORT, USHORT, SCHAR *);
|
2003-10-03 03:53:34 +02:00
|
|
|
ISC_STATUS API_ROUTINE isc_dsql_exec_immed3_m(ISC_STATUS *, FRBRD **,
|
2003-01-22 17:37:59 +01:00
|
|
|
FRBRD **, USHORT,
|
2001-05-23 15:26:42 +02:00
|
|
|
SCHAR *, USHORT, USHORT,
|
|
|
|
SCHAR *, USHORT, USHORT,
|
|
|
|
SCHAR *, USHORT, SCHAR *,
|
|
|
|
USHORT, USHORT, SCHAR *);
|
2003-10-03 03:53:34 +02:00
|
|
|
ISC_STATUS API_ROUTINE isc_dsql_fetch(ISC_STATUS *, FRBRD **, USHORT,
|
2001-05-23 15:26:42 +02:00
|
|
|
XSQLDA *);
|
|
|
|
#ifdef SCROLLABLE_CURSORS
|
2003-10-03 03:53:34 +02:00
|
|
|
ISC_STATUS API_ROUTINE isc_dsql_fetch2(ISC_STATUS *, FRBRD **, USHORT,
|
2001-05-23 15:26:42 +02:00
|
|
|
XSQLDA *, USHORT, SLONG);
|
|
|
|
#endif
|
2003-10-03 03:53:34 +02:00
|
|
|
ISC_STATUS API_ROUTINE isc_dsql_fetch_m(ISC_STATUS *, FRBRD **, USHORT,
|
2001-05-23 15:26:42 +02:00
|
|
|
SCHAR *, USHORT, USHORT, SCHAR *);
|
|
|
|
#ifdef SCROLLABLE_CURSORS
|
2003-10-03 03:53:34 +02:00
|
|
|
ISC_STATUS API_ROUTINE isc_dsql_fetch2_m(ISC_STATUS *, FRBRD **, USHORT,
|
2001-05-23 15:26:42 +02:00
|
|
|
SCHAR *, USHORT, USHORT, SCHAR *,
|
|
|
|
USHORT, SLONG);
|
|
|
|
#endif
|
2003-10-03 03:53:34 +02:00
|
|
|
ISC_STATUS API_ROUTINE isc_dsql_free_statement(ISC_STATUS *, FRBRD **,
|
2001-05-23 15:26:42 +02:00
|
|
|
USHORT);
|
2003-10-03 03:53:34 +02:00
|
|
|
ISC_STATUS API_ROUTINE isc_dsql_insert(ISC_STATUS *, FRBRD **, USHORT,
|
2001-05-23 15:26:42 +02:00
|
|
|
XSQLDA *);
|
2003-10-03 03:53:34 +02:00
|
|
|
ISC_STATUS API_ROUTINE isc_dsql_insert_m(ISC_STATUS *, FRBRD **, USHORT,
|
2001-05-23 15:26:42 +02:00
|
|
|
SCHAR *, USHORT, USHORT, SCHAR *);
|
2003-10-03 03:53:34 +02:00
|
|
|
ISC_STATUS API_ROUTINE isc_dsql_prepare(ISC_STATUS *, FRBRD **,
|
2003-01-22 17:37:59 +01:00
|
|
|
FRBRD **, USHORT, SCHAR *,
|
2001-05-23 15:26:42 +02:00
|
|
|
USHORT, XSQLDA *);
|
2003-10-03 03:53:34 +02:00
|
|
|
ISC_STATUS API_ROUTINE isc_dsql_prepare_m(ISC_STATUS *, FRBRD **,
|
2003-01-22 17:37:59 +01:00
|
|
|
FRBRD **, USHORT, SCHAR *,
|
2003-02-13 11:11:35 +01:00
|
|
|
USHORT, USHORT, const SCHAR *, USHORT,
|
2001-05-23 15:26:42 +02:00
|
|
|
SCHAR *);
|
2003-10-03 03:53:34 +02:00
|
|
|
ISC_STATUS API_ROUTINE isc_dsql_set_cursor_name(ISC_STATUS *, FRBRD **,
|
2001-05-23 15:26:42 +02:00
|
|
|
SCHAR *, USHORT);
|
2003-10-29 11:53:47 +01:00
|
|
|
ISC_STATUS API_ROUTINE isc_dsql_sql_info(ISC_STATUS*, FRBRD**, SSHORT,
|
|
|
|
const SCHAR*, SSHORT, SCHAR*);
|
2003-10-03 03:53:34 +02:00
|
|
|
ISC_STATUS API_ROUTINE isc_prepare_transaction2(ISC_STATUS *, FRBRD **, USHORT,
|
2001-05-23 15:26:42 +02:00
|
|
|
UCHAR *);
|
2002-12-16 17:25:10 +01:00
|
|
|
typedef void event_ast_routine(UCHAR*, USHORT, UCHAR*);
|
2003-10-03 03:53:34 +02:00
|
|
|
ISC_STATUS API_ROUTINE isc_que_events(ISC_STATUS *, FRBRD **, SLONG *,
|
2002-12-16 17:25:10 +01:00
|
|
|
USHORT, UCHAR *, event_ast_routine *, void *);
|
2001-05-23 15:26:42 +02:00
|
|
|
#ifdef SCROLLABLE_CURSORS
|
2003-10-03 03:53:34 +02:00
|
|
|
ISC_STATUS API_ROUTINE isc_receive2(ISC_STATUS *, FRBRD **, USHORT,
|
2001-05-23 15:26:42 +02:00
|
|
|
USHORT, SCHAR *, SSHORT, USHORT,
|
|
|
|
ULONG);
|
|
|
|
#endif
|
2003-10-03 03:53:34 +02:00
|
|
|
ISC_STATUS API_ROUTINE isc_rollback_transaction(ISC_STATUS *, FRBRD **);
|
|
|
|
ISC_STATUS API_ROUTINE_VARARG isc_start_transaction(ISC_STATUS *,
|
2003-01-22 17:37:59 +01:00
|
|
|
FRBRD **, SSHORT,
|
2001-05-23 15:26:42 +02:00
|
|
|
...);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CANCEL_OPERATION
|
2003-10-03 03:53:34 +02:00
|
|
|
ISC_STATUS API_ROUTINE gds__cancel_operation(ISC_STATUS *, FRBRD **,
|
2001-05-23 15:26:42 +02:00
|
|
|
USHORT);
|
|
|
|
#endif
|
2003-01-22 17:37:59 +01:00
|
|
|
typedef void DatabaseCleanupRoutine(FRBRD **, SLONG);
|
2003-10-03 03:53:34 +02:00
|
|
|
ISC_STATUS API_ROUTINE gds__database_cleanup(ISC_STATUS *, FRBRD **,
|
2002-12-16 17:25:10 +01:00
|
|
|
DatabaseCleanupRoutine *, SLONG);
|
2003-10-03 03:53:34 +02:00
|
|
|
int API_ROUTINE gds__disable_subsystem(TEXT *);
|
|
|
|
int API_ROUTINE gds__enable_subsystem(TEXT *);
|
|
|
|
ISC_STATUS gds__handle_cleanup(ISC_STATUS *, FRBRD **);
|
2003-01-22 17:37:59 +01:00
|
|
|
typedef void TransactionCleanupRoutine(FRBRD *, SLONG);
|
2003-10-03 03:53:34 +02:00
|
|
|
ISC_STATUS API_ROUTINE gds__transaction_cleanup(ISC_STATUS *, FRBRD **,
|
2002-12-16 17:25:10 +01:00
|
|
|
TransactionCleanupRoutine *, SLONG);
|
2001-05-23 15:26:42 +02:00
|
|
|
|
|
|
|
#ifdef SERVER_SHUTDOWN
|
2003-10-03 03:53:34 +02:00
|
|
|
BOOLEAN WHY_set_shutdown(BOOLEAN);
|
|
|
|
BOOLEAN WHY_get_shutdown();
|
2001-05-23 15:26:42 +02:00
|
|
|
#endif /* SERVER_SHUTDOWN */
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern "C" */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* JRD_WHY_PROTO_H */
|
2003-10-29 11:53:47 +01:00
|
|
|
|