8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-30 20:03:03 +01:00
firebird-mirror/src/jrd/jrd_proto.h

87 lines
3.2 KiB
C
Raw Normal View History

2001-05-23 15:26:42 +02:00
/*
* PROGRAM: JRD Access Method
* MODULE: jrd_proto.h
* 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
#include "../common/classes/fb_string.h"
#include "../common/classes/objects_array.h"
namespace Jrd {
class Database;
class Attachment;
class jrd_tra;
class blb;
struct bid;
class jrd_req;
class JrdStatement;
class Service;
class thread_db;
struct teb;
2008-02-28 14:48:16 +01:00
class dsql_req;
}
2001-05-23 15:26:42 +02:00
2004-05-03 01:06:37 +02:00
void jrd_vtof(const char*, char*, SSHORT);
typedef Firebird::SortedObjectsArray<Firebird::PathName> PathNameList;
void JRD_enum_attachments(PathNameList*, ULONG&, ULONG&, ULONG&);
2001-05-23 15:26:42 +02:00
bool JRD_reschedule(Jrd::thread_db*, SLONG, bool);
2001-05-23 15:26:42 +02:00
#ifdef DEBUG_PROCS
void JRD_print_procedure_info(Jrd::thread_db*, const char*);
#endif
void JRD_autocommit_ddl(Jrd::thread_db* tdbb, Jrd::jrd_tra* transaction);
void JRD_receive(Jrd::thread_db* tdbb, Jrd::jrd_req* request, USHORT msg_type, ULONG msg_length,
UCHAR* msg);
void JRD_start(Jrd::thread_db* tdbb, Jrd::jrd_req* request, Jrd::jrd_tra* transaction);
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);
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);
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);
void JRD_start_transaction(Jrd::thread_db* tdbb, Jrd::jrd_tra** transaction,
Jrd::Attachment* attachment, unsigned int tpb_length, const UCHAR* tpb);
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,
ULONG blr_length, const UCHAR* blr, Firebird::RefStrPtr,
ULONG dbginfo_length, const UCHAR* dbginfo, bool isInternalRequest);
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
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 */