mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-27 20:43:03 +01:00
285 lines
10 KiB
C
285 lines
10 KiB
C
/*
|
|
* PROGRAM: JRD Access Method
|
|
* MODULE: why_proto.h
|
|
* DESCRIPTION: Prototype header file for why.cpp
|
|
*
|
|
* 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
|
|
ISC_STATUS API_ROUTINE isc_dsql_allocate_statement(ISC_STATUS*, FRBRD**, FRBRD**);
|
|
ISC_STATUS API_ROUTINE isc_dsql_alloc_statement2(ISC_STATUS*, FRBRD**, FRBRD**);
|
|
ISC_STATUS API_ROUTINE isc_dsql_describe(ISC_STATUS *, FRBRD**, USHORT, XSQLDA*);
|
|
ISC_STATUS API_ROUTINE isc_dsql_describe_bind(ISC_STATUS*, FRBRD**,
|
|
USHORT, XSQLDA*);
|
|
ISC_STATUS API_ROUTINE isc_dsql_execute(ISC_STATUS*, FRBRD**, FRBRD**,
|
|
USHORT, XSQLDA*);
|
|
ISC_STATUS API_ROUTINE isc_dsql_execute_m(ISC_STATUS*, FRBRD**, FRBRD**, USHORT,
|
|
const SCHAR*, USHORT, USHORT, SCHAR*);
|
|
ISC_STATUS API_ROUTINE isc_dsql_execute2(ISC_STATUS*, FRBRD**, FRBRD**, USHORT,
|
|
XSQLDA*, XSQLDA*);
|
|
ISC_STATUS API_ROUTINE isc_dsql_execute2_m(ISC_STATUS*, FRBRD**,
|
|
FRBRD**, USHORT, const SCHAR*,
|
|
USHORT, USHORT, SCHAR*, USHORT,
|
|
SCHAR*, USHORT, USHORT,
|
|
SCHAR*);
|
|
ISC_STATUS API_ROUTINE isc_dsql_execute_immediate(ISC_STATUS*, FRBRD**,
|
|
FRBRD**, USHORT,
|
|
const SCHAR*, USHORT,
|
|
XSQLDA*);
|
|
ISC_STATUS API_ROUTINE isc_dsql_exec_immed2(ISC_STATUS*, FRBRD**,
|
|
FRBRD**, USHORT,
|
|
const SCHAR*, USHORT, XSQLDA*,
|
|
XSQLDA*);
|
|
ISC_STATUS API_ROUTINE isc_dsql_execute_immediate_m(ISC_STATUS*,
|
|
FRBRD**,
|
|
FRBRD**, USHORT,
|
|
const SCHAR*, USHORT,
|
|
USHORT, const SCHAR*,
|
|
USHORT, USHORT,
|
|
SCHAR*);
|
|
ISC_STATUS API_ROUTINE isc_dsql_exec_immed2_m(ISC_STATUS*, FRBRD**,
|
|
FRBRD**, USHORT,
|
|
const SCHAR*, USHORT, USHORT,
|
|
const SCHAR*, USHORT, USHORT,
|
|
SCHAR*, USHORT, SCHAR*,
|
|
USHORT, USHORT, SCHAR*);
|
|
ISC_STATUS API_ROUTINE isc_dsql_exec_immed3_m(ISC_STATUS*, FRBRD**,
|
|
FRBRD**, USHORT,
|
|
const SCHAR*, USHORT, USHORT,
|
|
const SCHAR*, USHORT, USHORT,
|
|
SCHAR*, USHORT, SCHAR*,
|
|
USHORT, USHORT, SCHAR*);
|
|
ISC_STATUS API_ROUTINE isc_dsql_fetch(ISC_STATUS*, FRBRD**, USHORT, XSQLDA*);
|
|
#ifdef SCROLLABLE_CURSORS
|
|
ISC_STATUS API_ROUTINE isc_dsql_fetch2(ISC_STATUS*, FRBRD**, USHORT,
|
|
XSQLDA*, USHORT, SLONG);
|
|
#endif
|
|
ISC_STATUS API_ROUTINE isc_dsql_fetch_m(ISC_STATUS*, FRBRD**, USHORT,
|
|
const SCHAR*, USHORT, USHORT, SCHAR*);
|
|
#ifdef SCROLLABLE_CURSORS
|
|
ISC_STATUS API_ROUTINE isc_dsql_fetch2_m(ISC_STATUS*, FRBRD**, USHORT,
|
|
const SCHAR*, USHORT, USHORT, SCHAR*,
|
|
USHORT, SLONG);
|
|
#endif
|
|
ISC_STATUS API_ROUTINE isc_dsql_free_statement(ISC_STATUS*, FRBRD**, USHORT);
|
|
ISC_STATUS API_ROUTINE isc_dsql_insert(ISC_STATUS*, FRBRD**, USHORT, XSQLDA*);
|
|
ISC_STATUS API_ROUTINE isc_dsql_insert_m(ISC_STATUS*, FRBRD**, USHORT,
|
|
const SCHAR*, USHORT,
|
|
USHORT, const SCHAR*);
|
|
ISC_STATUS API_ROUTINE isc_dsql_prepare(ISC_STATUS*, FRBRD**,
|
|
FRBRD**, USHORT, const SCHAR*,
|
|
USHORT, XSQLDA*);
|
|
ISC_STATUS API_ROUTINE isc_dsql_prepare_m(ISC_STATUS*, FRBRD**,
|
|
FRBRD**, USHORT, const SCHAR*,
|
|
USHORT, USHORT, const SCHAR*, USHORT,
|
|
SCHAR*);
|
|
ISC_STATUS API_ROUTINE isc_dsql_set_cursor_name(ISC_STATUS*, FRBRD**,
|
|
const SCHAR*, USHORT);
|
|
ISC_STATUS API_ROUTINE isc_dsql_sql_info(ISC_STATUS*, FRBRD**, SSHORT,
|
|
const SCHAR*, SSHORT, SCHAR*);
|
|
//ISC_STATUS API_ROUTINE isc_prepare_transaction2(ISC_STATUS*, FRBRD**, USHORT,
|
|
// UCHAR*);
|
|
// Deprecated in favor of FPTR_EVENT_CALLBACK
|
|
//typedef void event_ast_routine(UCHAR*, USHORT, UCHAR*);
|
|
//ISC_STATUS API_ROUTINE isc_que_events(ISC_STATUS*, FRBRD**, SLONG*,
|
|
// USHORT, const UCHAR*,
|
|
// FPTR_EVENT_CALLBACK, void*);
|
|
//#ifdef SCROLLABLE_CURSORS
|
|
//ISC_STATUS API_ROUTINE isc_receive2(ISC_STATUS*, FRBRD**, USHORT,
|
|
// USHORT, SCHAR*, SSHORT, USHORT,
|
|
// ULONG);
|
|
//#endif
|
|
//ISC_STATUS API_ROUTINE isc_rollback_transaction(ISC_STATUS*, FRBRD**);
|
|
//ISC_STATUS API_ROUTINE_VARARG isc_start_transaction(ISC_STATUS*,
|
|
// FRBRD**, SSHORT,
|
|
// ...);
|
|
|
|
|
|
ISC_STATUS API_ROUTINE isc_attach_database(ISC_STATUS*, SSHORT, const TEXT*,
|
|
FRBRD** , SSHORT, const SCHAR*);
|
|
|
|
ISC_STATUS API_ROUTINE isc_blob_info(ISC_STATUS*, FRBRD**, SSHORT, const SCHAR*,
|
|
SSHORT, SCHAR*);
|
|
|
|
ISC_STATUS API_ROUTINE isc_cancel_blob(ISC_STATUS*, FRBRD**);
|
|
|
|
ISC_STATUS API_ROUTINE isc_cancel_events(ISC_STATUS*, FRBRD**, SLONG*);
|
|
|
|
ISC_STATUS API_ROUTINE isc_close_blob(ISC_STATUS*, FRBRD**);
|
|
|
|
ISC_STATUS API_ROUTINE isc_commit_transaction(ISC_STATUS*, FRBRD**);
|
|
|
|
ISC_STATUS API_ROUTINE isc_commit_retaining(ISC_STATUS*, FRBRD**);
|
|
|
|
ISC_STATUS API_ROUTINE isc_compile_request(ISC_STATUS*, FRBRD**, FRBRD**,
|
|
USHORT, const SCHAR*);
|
|
|
|
ISC_STATUS API_ROUTINE isc_compile_request2(ISC_STATUS*, FRBRD**, FRBRD**,
|
|
USHORT, const SCHAR*);
|
|
|
|
ISC_STATUS API_ROUTINE isc_create_blob(ISC_STATUS*, FRBRD**, FRBRD**,
|
|
FRBRD**, SLONG*);
|
|
|
|
ISC_STATUS API_ROUTINE isc_create_blob2(ISC_STATUS*, FRBRD**, FRBRD**,
|
|
FRBRD**, SLONG*, SSHORT, const UCHAR*);
|
|
|
|
ISC_STATUS API_ROUTINE isc_create_database(ISC_STATUS*, USHORT, const TEXT*,
|
|
FRBRD**, SSHORT, const UCHAR*,
|
|
USHORT);
|
|
|
|
ISC_STATUS API_ROUTINE isc_database_info(ISC_STATUS*, FRBRD**, SSHORT,
|
|
const SCHAR*, SSHORT, SCHAR*);
|
|
|
|
ISC_STATUS API_ROUTINE isc_ddl(ISC_STATUS*, FRBRD**, FRBRD**, SSHORT, const UCHAR*);
|
|
|
|
ISC_STATUS API_ROUTINE isc_detach_database(ISC_STATUS*, FRBRD**);
|
|
|
|
ISC_STATUS API_ROUTINE isc_drop_database(ISC_STATUS*, FRBRD**);
|
|
|
|
ISC_STATUS API_ROUTINE isc_get_segment(ISC_STATUS*, FRBRD**, USHORT*, USHORT,
|
|
UCHAR*);
|
|
|
|
ISC_STATUS API_ROUTINE isc_get_slice(ISC_STATUS*, FRBRD**, FRBRD**, SLONG*,
|
|
USHORT, const UCHAR*, USHORT, const UCHAR*,
|
|
SLONG, UCHAR*, SLONG*);
|
|
|
|
ISC_STATUS API_ROUTINE isc_open_blob(ISC_STATUS*, FRBRD**, FRBRD**, FRBRD**,
|
|
SLONG*);
|
|
|
|
ISC_STATUS API_ROUTINE isc_open_blob2(ISC_STATUS*, FRBRD**, FRBRD**, FRBRD**,
|
|
SLONG*, SSHORT, const UCHAR*);
|
|
|
|
ISC_STATUS API_ROUTINE isc_prepare_transaction(ISC_STATUS*, FRBRD**);
|
|
|
|
ISC_STATUS API_ROUTINE isc_prepare_transaction2(ISC_STATUS*, FRBRD**, USHORT,
|
|
const UCHAR*);
|
|
|
|
ISC_STATUS API_ROUTINE isc_put_segment(ISC_STATUS*, FRBRD**, USHORT, const UCHAR*);
|
|
|
|
ISC_STATUS API_ROUTINE isc_put_slice(ISC_STATUS*, FRBRD**, FRBRD**, SLONG*,
|
|
USHORT, const UCHAR*, USHORT, const UCHAR*,
|
|
SLONG, UCHAR*);
|
|
|
|
ISC_STATUS API_ROUTINE isc_que_events(ISC_STATUS*, FRBRD**, SLONG*, USHORT,
|
|
const UCHAR*,
|
|
FPTR_EVENT_CALLBACK, void*);
|
|
|
|
ISC_STATUS API_ROUTINE isc_receive(ISC_STATUS*, FRBRD**, USHORT, USHORT,
|
|
SCHAR*, SSHORT);
|
|
|
|
#ifdef SCROLLABLE_CURSORS
|
|
ISC_STATUS API_ROUTINE isc_receive2(ISC_STATUS*, FRBRD**, USHORT, USHORT, SCHAR*,
|
|
SSHORT, USHORT, ULONG);
|
|
#endif
|
|
|
|
ISC_STATUS API_ROUTINE isc_reconnect_transaction(ISC_STATUS*, FRBRD**, FRBRD**,
|
|
SSHORT, const UCHAR*);
|
|
|
|
ISC_STATUS API_ROUTINE isc_release_request(ISC_STATUS*, FRBRD**);
|
|
|
|
ISC_STATUS API_ROUTINE isc_request_info(ISC_STATUS*, FRBRD**, SSHORT, SSHORT,
|
|
const SCHAR*, SSHORT, SCHAR*);
|
|
|
|
ISC_STATUS API_ROUTINE isc_rollback_retaining(ISC_STATUS*, FRBRD**);
|
|
|
|
ISC_STATUS API_ROUTINE isc_rollback_transaction(ISC_STATUS*, FRBRD**);
|
|
|
|
ISC_STATUS API_ROUTINE isc_seek_blob(ISC_STATUS*, FRBRD**, SSHORT, SLONG,
|
|
SLONG*);
|
|
|
|
ISC_STATUS API_ROUTINE isc_send(ISC_STATUS*, FRBRD**, USHORT, USHORT, const SCHAR*,
|
|
SSHORT);
|
|
|
|
ISC_STATUS API_ROUTINE isc_service_attach(ISC_STATUS*, USHORT, const TEXT*, FRBRD**,
|
|
USHORT, const SCHAR*);
|
|
|
|
ISC_STATUS API_ROUTINE isc_service_detach(ISC_STATUS*, FRBRD**);
|
|
|
|
ISC_STATUS API_ROUTINE isc_service_query(ISC_STATUS*, FRBRD**, ULONG*, USHORT,
|
|
const SCHAR*, USHORT, const SCHAR*,
|
|
USHORT, SCHAR*);
|
|
|
|
ISC_STATUS API_ROUTINE isc_service_start(ISC_STATUS*, FRBRD**, ULONG*, USHORT,
|
|
const SCHAR*);
|
|
|
|
ISC_STATUS API_ROUTINE isc_start_and_send(ISC_STATUS*, FRBRD**, FRBRD**,
|
|
USHORT, USHORT, const SCHAR*, SSHORT);
|
|
|
|
ISC_STATUS API_ROUTINE isc_start_request(ISC_STATUS*, FRBRD**, FRBRD**, SSHORT);
|
|
|
|
ISC_STATUS API_ROUTINE isc_start_multiple(ISC_STATUS*, FRBRD**, SSHORT, void*);
|
|
|
|
ISC_STATUS API_ROUTINE_VARARG isc_start_transaction(ISC_STATUS*, FRBRD**,
|
|
SSHORT, ...);
|
|
|
|
ISC_STATUS API_ROUTINE isc_transact_request(ISC_STATUS*, FRBRD**, FRBRD**,
|
|
USHORT, const SCHAR*, USHORT,
|
|
SCHAR*, USHORT, SCHAR*);
|
|
|
|
ISC_STATUS API_ROUTINE isc_transaction_info(ISC_STATUS*, FRBRD**, SSHORT,
|
|
const SCHAR*, SSHORT, UCHAR*);
|
|
|
|
ISC_STATUS API_ROUTINE isc_unwind_request(ISC_STATUS*, FRBRD**, SSHORT);
|
|
#ifndef REQUESTER
|
|
ISC_STATUS API_ROUTINE isc_wait_for_event(ISC_STATUS*, FRBRD**, USHORT,
|
|
const SCHAR*, SCHAR*);
|
|
#endif
|
|
|
|
#endif
|
|
|
|
typedef void DatabaseCleanupRoutine(FRBRD**, void*);
|
|
|
|
#ifdef CANCEL_OPERATION
|
|
#define CANCEL_disable 1
|
|
#define CANCEL_enable 2
|
|
#define CANCEL_raise 3
|
|
ISC_STATUS API_ROUTINE gds__cancel_operation(ISC_STATUS*, FRBRD**, USHORT);
|
|
#endif
|
|
|
|
ISC_STATUS API_ROUTINE isc_database_cleanup(ISC_STATUS*, FRBRD**,
|
|
DatabaseCleanupRoutine*, void*);
|
|
int API_ROUTINE gds__disable_subsystem(TEXT*);
|
|
int API_ROUTINE gds__enable_subsystem(TEXT*);
|
|
|
|
ISC_STATUS gds__handle_cleanup(ISC_STATUS*, FRBRD**);
|
|
typedef void TransactionCleanupRoutine(FRBRD*, void*);
|
|
ISC_STATUS API_ROUTINE gds__transaction_cleanup(ISC_STATUS*, FRBRD**,
|
|
TransactionCleanupRoutine*, void*);
|
|
|
|
#ifdef SERVER_SHUTDOWN
|
|
BOOLEAN WHY_set_shutdown(BOOLEAN);
|
|
BOOLEAN WHY_get_shutdown();
|
|
#endif /* SERVER_SHUTDOWN*/
|
|
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern "C"*/
|
|
#endif
|
|
|
|
#endif // JRD_WHY_PROTO_H
|
|
|