8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 20:03:02 +01:00
firebird-mirror/src/jrd/pag_proto.h
alexpeshkoff a1f3f10493 1. Renamed info parameter.
2. Clearly separated PIP logic and IO, as was requested by Vlad.
2007-11-12 17:24:22 +00:00

78 lines
2.4 KiB
C++

/*
* PROGRAM: JRD Access Method
* MODULE: pag_proto.h
* DESCRIPTION: Prototype header file for pag.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_PAG_PROTO_H
#define JRD_PAG_PROTO_H
namespace Jrd {
class thread_db;
class Database;
class PageNumber;
class PageSpace;
struct win;
}
namespace Ods {
struct pag;
struct header_page;
}
void PAG_add_clump(SLONG, USHORT, USHORT, const UCHAR*, USHORT, USHORT);
USHORT PAG_add_file(const TEXT*, SLONG);
int PAG_add_header_entry(Ods::header_page*, USHORT, USHORT, const UCHAR*);
void PAG_attach_temp_pages(Jrd::thread_db*, USHORT pageSpaceID);
int PAG_replace_entry_first(Ods::header_page*, USHORT, USHORT, const UCHAR*);
Ods::pag* PAG_allocate(Jrd::win *);
SLONG PAG_attachment_id(Jrd::thread_db*);
int PAG_delete_clump_entry(SLONG, USHORT);
void PAG_format_header();
void PAG_format_log();
void PAG_format_pip(Jrd::thread_db*, Jrd::PageSpace& pageSpace);
bool PAG_get_clump(SLONG, USHORT, USHORT*, UCHAR*);
void PAG_header(bool);
void PAG_header_init();
void PAG_init();
void PAG_init2(USHORT);
SLONG PAG_last_page();
void PAG_release_page(const Jrd::PageNumber&, const Jrd::PageNumber&);
void PAG_set_force_write(Jrd::Database*, SSHORT);
void PAG_set_no_reserve(Jrd::Database*, USHORT);
void PAG_set_db_readonly(Jrd::Database*, bool);
void PAG_set_db_SQL_dialect(Jrd::Database*, SSHORT);
void PAG_set_page_buffers(ULONG);
void PAG_sweep_interval(SLONG);
//int PAG_unlicensed(void);
namespace Jrd {
class PageCountCallback
{
public:
// PageCountCallback() { }
virtual void newPage(const SLONG, Ods::pag*) = 0;
// virtual ~PageCountCallback();
};
}
ULONG PAG_page_count(Jrd::Database*, Jrd::PageCountCallback*);
#endif // JRD_PAG_PROTO_H