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

62 lines
2.4 KiB
C
Raw Normal View History

2001-05-23 15:26:42 +02:00
/*
* PROGRAM: JRD Access Method
* MODULE: vio_proto.h
2003-12-31 06:36:12 +01:00
* DESCRIPTION: Prototype header file for vio.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): ______________________________________.
* 2002.10.21 Nickolay Samofatov: Added support for explicit pessimistic locks
* 2002.10.29 Nickolay Samofatov: Added support for savepoints
2001-05-23 15:26:42 +02:00
*/
#ifndef JRD_VIO_PROTO_H
#define JRD_VIO_PROTO_H
2001-05-23 15:26:42 +02:00
void VIO_backout(TDBB, struct rpb *, class jrd_tra *);
void VIO_bump_count(TDBB, USHORT, struct jrd_rel *, bool);
int VIO_chase_record_version(TDBB, struct rpb *, class Rsb *,
class jrd_tra *, struct blk *, BOOLEAN);
2001-05-23 15:26:42 +02:00
#ifdef PC_ENGINE
2003-10-05 08:11:50 +02:00
int VIO_check_if_updated(TDBB, struct rpb *);
2001-05-23 15:26:42 +02:00
#endif
void VIO_data(TDBB, struct rpb *, struct blk *);
void VIO_erase(TDBB, struct rpb *, class jrd_tra *);
2001-05-23 15:26:42 +02:00
#ifdef GARBAGE_THREAD
void VIO_fini(TDBB);
2001-05-23 15:26:42 +02:00
#endif
2003-12-22 11:00:59 +01:00
bool VIO_garbage_collect(TDBB, struct rpb *, class jrd_tra *);
struct rec* VIO_gc_record(TDBB, struct jrd_rel *);
int VIO_get(TDBB, struct rpb *, class Rsb *, class jrd_tra *, struct blk *);
int VIO_get_current(TDBB, struct rpb *, class jrd_tra *, struct blk *, USHORT);
2001-05-23 15:26:42 +02:00
#ifdef GARBAGE_THREAD
void VIO_init(TDBB);
2001-05-23 15:26:42 +02:00
#endif
void VIO_merge_proc_sav_points(TDBB, class jrd_tra *, struct sav **);
BOOLEAN VIO_writelock(TDBB, struct rpb *, class Rsb *, class jrd_tra *);
void VIO_modify(TDBB, struct rpb *, struct rpb *, class jrd_tra *);
BOOLEAN VIO_next_record(TDBB, struct rpb *, class Rsb *, class jrd_tra *,
2001-05-23 15:26:42 +02:00
struct blk *, BOOLEAN, BOOLEAN);
2003-12-31 06:36:12 +01:00
struct rec* VIO_record(TDBB, struct rpb *, const struct fmt*, JrdMemoryPool *);
void VIO_start_save_point(TDBB, class jrd_tra *);
void VIO_store(TDBB, struct rpb *, class jrd_tra *);
BOOLEAN VIO_sweep(TDBB, class jrd_tra *);
void VIO_verb_cleanup(TDBB, class jrd_tra *);
SLONG VIO_savepoint_large(struct sav *, SLONG);
2001-05-23 15:26:42 +02:00
2003-11-06 04:03:36 +01:00
#endif // JRD_VIO_PROTO_H
2001-05-23 15:26:42 +02:00