8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-29 06:43:03 +01:00
firebird-mirror/src/jrd/pag_proto.h

73 lines
2.8 KiB
C
Raw Normal View History

2001-05-23 15:26:42 +02:00
/*
* PROGRAM: JRD Access Method
* MODULE: pag_proto.h
* DESCRIPTION: Prototype header file for pag.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_PAG_PROTO_H
#define JRD_PAG_PROTO_H
2001-05-23 15:26:42 +02:00
namespace Jrd {
2006-05-22 00:07:35 +02:00
class thread_db;
class Database;
2006-05-22 00:07:35 +02:00
class PageNumber;
class PageSpace;
struct win;
}
namespace Ods {
struct pag;
struct header_page;
//enum ClumpOper { CLUMP_ADD, CLUMP_REPLACE, CLUMP_REPLACE_ONLY };
2009-01-07 10:30:57 +01:00
}
//void PAG_add_clump(Jrd::thread_db* tdbb, SLONG, USHORT, USHORT, const UCHAR*, Ods::ClumpOper);
USHORT PAG_add_file(Jrd::thread_db* tdbb, const TEXT*, SLONG);
2009-01-07 10:30:57 +01:00
bool PAG_add_header_entry(Jrd::thread_db* tdbb, Ods::header_page*, USHORT, USHORT, const UCHAR*);
//void PAG_attach_temp_pages(Jrd::thread_db*, USHORT pageSpaceID);
2009-01-07 10:30:57 +01:00
bool PAG_replace_entry_first(Jrd::thread_db* tdbb, Ods::header_page*, USHORT, USHORT, const UCHAR*);
Ods::pag* PAG_allocate(Jrd::thread_db* tdbb, Jrd::win*);
Ods::pag* PAG_allocate_pages(Jrd::thread_db* tdbb, Jrd::win* window, int cntAlloc, bool aligned);
AttNumber PAG_attachment_id(Jrd::thread_db*);
2009-11-28 09:56:39 +01:00
bool PAG_delete_clump_entry(Jrd::thread_db* tdbb, USHORT);
void PAG_format_header(Jrd::thread_db*);
2006-05-22 00:07:35 +02:00
void PAG_format_pip(Jrd::thread_db*, Jrd::PageSpace& pageSpace);
#ifdef NOT_USED_OR_REPLACED
bool PAG_get_clump(Jrd::thread_db* tdbb, SLONG, USHORT, USHORT*, UCHAR*);
#endif
void PAG_header(Jrd::thread_db*, bool);
void PAG_header_init(Jrd::thread_db*);
void PAG_init(Jrd::thread_db*);
void PAG_init2(Jrd::thread_db*, USHORT);
SLONG PAG_last_page(Jrd::thread_db* tdbb);
void PAG_release_page(Jrd::thread_db* tdbb, const Jrd::PageNumber&, const Jrd::PageNumber&);
2014-10-12 04:25:02 +02:00
void PAG_release_pages(Jrd::thread_db* tdbb, USHORT pageSpaceID, int cntRelease,
const ULONG* pgNums, const ULONG prior_page);
void PAG_set_force_write(Jrd::thread_db* tdbb, bool);
void PAG_set_no_reserve(Jrd::thread_db* tdbb, bool);
void PAG_set_db_readonly(Jrd::thread_db* tdbb, bool);
void PAG_set_db_SQL_dialect(Jrd::thread_db* tdbb, SSHORT);
void PAG_set_page_buffers(Jrd::thread_db* tdbb, ULONG);
void PAG_set_page_scn(Jrd::thread_db* tdbb, Jrd::win* window);
void PAG_sweep_interval(Jrd::thread_db* tdbb, SLONG);
2016-07-15 17:46:44 +02:00
ULONG PAG_page_count(Jrd::thread_db*);
2003-11-06 04:03:36 +01:00
#endif // JRD_PAG_PROTO_H