2001-05-23 15:26:42 +02:00
|
|
|
/*
|
|
|
|
* PROGRAM: JRD Access Method
|
|
|
|
* MODULE: dpm_proto.h
|
2003-11-07 09:06:35 +01:00
|
|
|
* DESCRIPTION: Prototype header file for dpm.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): ______________________________________.
|
|
|
|
*/
|
|
|
|
|
2001-12-24 03:51:06 +01:00
|
|
|
#ifndef JRD_DPM_PROTO_H
|
|
|
|
#define JRD_DPM_PROTO_H
|
2001-05-23 15:26:42 +02:00
|
|
|
|
2001-12-24 03:51:06 +01:00
|
|
|
// fwd. decl.
|
|
|
|
class blb;
|
2004-02-20 07:43:27 +01:00
|
|
|
class lls;
|
2001-12-24 03:51:06 +01:00
|
|
|
|
|
|
|
struct pag* DPM_allocate(TDBB, struct win*);
|
|
|
|
void DPM_backout(TDBB, struct rpb *);
|
|
|
|
int DPM_chain(TDBB, struct rpb *, struct rpb *);
|
2004-02-02 12:02:12 +01:00
|
|
|
int DPM_compress(TDBB, struct data_page*);
|
2002-11-21 00:18:16 +01:00
|
|
|
void DPM_create_relation(TDBB, struct jrd_rel *);
|
|
|
|
SLONG DPM_data_pages(TDBB, struct jrd_rel *);
|
2001-12-24 03:51:06 +01:00
|
|
|
void DPM_delete(TDBB, struct rpb *, SLONG);
|
2002-11-21 00:18:16 +01:00
|
|
|
void DPM_delete_relation(TDBB, struct jrd_rel *);
|
2004-02-20 07:43:27 +01:00
|
|
|
bool DPM_fetch(TDBB, struct rpb *, USHORT);
|
2003-02-10 14:28:35 +01:00
|
|
|
SSHORT DPM_fetch_back(TDBB, struct rpb *, USHORT, SSHORT);
|
|
|
|
void DPM_fetch_fragment(TDBB, struct rpb *, USHORT);
|
2001-12-24 03:51:06 +01:00
|
|
|
SINT64 DPM_gen_id(TDBB, SLONG, USHORT, SINT64);
|
2003-02-10 14:28:35 +01:00
|
|
|
int DPM_get(TDBB, struct rpb *, SSHORT);
|
2001-12-24 03:51:06 +01:00
|
|
|
ULONG DPM_get_blob(TDBB, blb*, ULONG, USHORT, SLONG);
|
2004-02-20 07:43:27 +01:00
|
|
|
bool DPM_next(TDBB, struct rpb*, USHORT, bool, bool);
|
2001-12-24 03:51:06 +01:00
|
|
|
void DPM_pages(TDBB, SSHORT, int, ULONG, SLONG);
|
2002-11-21 00:18:16 +01:00
|
|
|
SLONG DPM_prefetch_bitmap(struct tdbb *, struct jrd_rel *, struct sbm *,
|
2001-05-23 15:26:42 +02:00
|
|
|
SLONG);
|
2001-12-24 03:51:06 +01:00
|
|
|
void DPM_scan_pages(TDBB);
|
2004-02-20 07:43:27 +01:00
|
|
|
void DPM_store(TDBB, struct rpb *, lls**, USHORT);
|
2001-12-24 03:51:06 +01:00
|
|
|
SLONG DPM_store_blob(TDBB, blb*, struct rec *);
|
|
|
|
void DPM_rewrite_header(TDBB, struct rpb *);
|
2004-02-20 07:43:27 +01:00
|
|
|
void DPM_update(TDBB, struct rpb *, lls**,
|
2003-11-30 20:13:42 +01:00
|
|
|
class jrd_tra *);
|
2001-05-23 15:26:42 +02:00
|
|
|
|
2004-02-20 07:43:27 +01:00
|
|
|
#endif // JRD_DPM_PROTO_H
|