2001-05-23 15:26:42 +02:00
|
|
|
/*
|
|
|
|
* PROGRAM: JRD Access Method
|
|
|
|
* MODULE: jrd_proto.h
|
2003-10-29 11:53:47 +01:00
|
|
|
* DESCRIPTION: Prototype header file for jrd.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_JRD_PROTO_H
|
|
|
|
#define JRD_JRD_PROTO_H
|
|
|
|
|
2004-12-17 06:41:47 +01:00
|
|
|
#include "../common/classes/fb_string.h"
|
2011-12-22 16:32:06 +01:00
|
|
|
#include "../common/classes/objects_array.h"
|
2004-03-14 14:40:14 +01:00
|
|
|
|
2004-03-20 15:57:40 +01:00
|
|
|
namespace Jrd {
|
2009-08-25 13:16:32 +02:00
|
|
|
class Database;
|
2004-03-20 15:57:40 +01:00
|
|
|
class Attachment;
|
|
|
|
class jrd_tra;
|
|
|
|
class blb;
|
2004-03-31 19:58:04 +02:00
|
|
|
struct bid;
|
2004-03-20 15:57:40 +01:00
|
|
|
class jrd_req;
|
2010-04-19 00:19:11 +02:00
|
|
|
class JrdStatement;
|
2004-03-20 15:57:40 +01:00
|
|
|
class Service;
|
2004-06-08 15:41:08 +02:00
|
|
|
class thread_db;
|
2004-03-20 15:57:40 +01:00
|
|
|
struct teb;
|
2008-02-28 14:48:16 +01:00
|
|
|
class dsql_req;
|
2004-03-20 15:57:40 +01:00
|
|
|
}
|
2001-05-23 15:26:42 +02:00
|
|
|
|
2004-05-03 01:06:37 +02:00
|
|
|
void jrd_vtof(const char*, char*, SSHORT);
|
2004-03-11 06:04:26 +01:00
|
|
|
|
2011-12-22 16:32:06 +01:00
|
|
|
typedef Firebird::SortedObjectsArray<Firebird::PathName> PathNameList;
|
|
|
|
void JRD_enum_attachments(PathNameList*, ULONG&, ULONG&, ULONG&);
|
2001-05-23 15:26:42 +02:00
|
|
|
|
2011-12-22 16:32:06 +01:00
|
|
|
bool JRD_reschedule(Jrd::thread_db*, SLONG, bool);
|
2001-05-23 15:26:42 +02:00
|
|
|
|
2003-06-01 18:22:47 +02:00
|
|
|
#ifdef DEBUG_PROCS
|
2004-03-20 15:57:40 +01:00
|
|
|
void JRD_print_procedure_info(Jrd::thread_db*, const char*);
|
2003-06-01 18:22:47 +02:00
|
|
|
#endif
|
|
|
|
|
2008-03-02 22:16:16 +01:00
|
|
|
|
2008-04-15 04:18:38 +02:00
|
|
|
void JRD_autocommit_ddl(Jrd::thread_db* tdbb, Jrd::jrd_tra* transaction);
|
2010-04-08 13:14:57 +02:00
|
|
|
void JRD_receive(Jrd::thread_db* tdbb, Jrd::jrd_req* request, USHORT msg_type, ULONG msg_length,
|
2010-04-19 00:19:11 +02:00
|
|
|
UCHAR* msg);
|
|
|
|
void JRD_start(Jrd::thread_db* tdbb, Jrd::jrd_req* request, Jrd::jrd_tra* transaction);
|
2008-03-02 22:16:16 +01:00
|
|
|
|
2010-10-12 10:02:57 +02:00
|
|
|
void JRD_commit_transaction(Jrd::thread_db* tdbb, Jrd::jrd_tra* transaction);
|
|
|
|
void JRD_commit_retaining(Jrd::thread_db* tdbb, Jrd::jrd_tra* transaction);
|
|
|
|
void JRD_rollback_transaction(Jrd::thread_db* tdbb, Jrd::jrd_tra* transaction);
|
|
|
|
void JRD_rollback_retaining(Jrd::thread_db* tdbb, Jrd::jrd_tra* transaction);
|
2010-04-08 13:14:57 +02:00
|
|
|
void JRD_send(Jrd::thread_db* tdbb, Jrd::jrd_req* request, USHORT msg_type, ULONG msg_length,
|
2010-10-12 10:02:57 +02:00
|
|
|
const UCHAR* msg);
|
2008-03-07 16:23:21 +01:00
|
|
|
void JRD_start_and_send(Jrd::thread_db* tdbb, Jrd::jrd_req* request, Jrd::jrd_tra* transaction,
|
2010-10-12 10:02:57 +02:00
|
|
|
USHORT msg_type, ULONG msg_length, const UCHAR* msg);
|
2011-04-25 19:47:56 +02:00
|
|
|
void JRD_start_transaction(Jrd::thread_db* tdbb, Jrd::jrd_tra** transaction,
|
|
|
|
Jrd::Attachment* attachment, unsigned int tpb_length, const UCHAR* tpb);
|
2010-04-19 00:19:11 +02:00
|
|
|
void JRD_unwind_request(Jrd::thread_db* tdbb, Jrd::jrd_req* request);
|
2008-03-08 22:20:26 +01:00
|
|
|
void JRD_compile(Jrd::thread_db* tdbb, Jrd::Attachment* attachment, Jrd::jrd_req** req_handle,
|
2009-08-05 14:30:32 +02:00
|
|
|
ULONG blr_length, const UCHAR* blr, Firebird::RefStrPtr,
|
2011-01-28 18:12:22 +01:00
|
|
|
ULONG dbginfo_length, const UCHAR* dbginfo, bool isInternalRequest);
|
2008-04-08 16:18:24 +02:00
|
|
|
bool JRD_verify_database_access(const Firebird::PathName&);
|
2011-05-09 12:15:19 +02:00
|
|
|
void JRD_shutdown_attachments(Jrd::Database* dbb);
|
2010-10-12 10:02:57 +02:00
|
|
|
void JRD_cancel_operation(Jrd::thread_db* tdbb, Jrd::Attachment* attachment, int option);
|
2013-11-14 17:16:24 +01:00
|
|
|
|
|
|
|
bool JRD_shutdown_database(Jrd::Database* dbb, const unsigned flags = 0);
|
|
|
|
// JRD_shutdown_database() flags
|
2015-03-04 17:18:53 +01:00
|
|
|
static const unsigned SHUT_DBB_RELEASE_POOLS = 0x01;
|
|
|
|
static const unsigned SHUT_DBB_LINGER = 0x02;
|
|
|
|
static const unsigned SHUT_DBB_OVERWRITE_CHECK = 0x04;
|
2013-11-14 17:16:24 +01:00
|
|
|
|
2001-05-23 15:26:42 +02:00
|
|
|
#endif /* JRD_JRD_PROTO_H */
|