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

69 lines
2.7 KiB
C
Raw Normal View History

2001-05-23 15:26:42 +02:00
/*
* PROGRAM: JRD Access Method
* MODULE: btr_proto.h
* DESCRIPTION: Prototype header file for btr.c
*
* 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_BTR_PROTO_H_
#define _JRD_BTR_PROTO_H_
#include "../jrd/btr.h"
#include "../jrd/ods.h"
#include "../jrd/req.h"
#ifdef __cplusplus
extern "C" {
#endif
extern USHORT BTR_all(TDBB, struct jrd_rel *, struct idx **, struct idx **,
2001-05-23 15:26:42 +02:00
struct str **, SLONG *);
extern void BTR_create(TDBB, struct jrd_rel *, struct idx *, USHORT, struct scb *,
2001-05-23 15:26:42 +02:00
float *);
extern void BTR_delete_index(TDBB, struct win *, USHORT);
extern bool BTR_description(JRD_REL, struct irt *, struct idx *, SSHORT);
2001-05-23 15:26:42 +02:00
extern void BTR_evaluate(struct tdbb *, struct irb *, struct sbm **);
extern struct btn *BTR_find_leaf(struct btr *, struct key *, UCHAR *, USHORT *,
int, bool);
2001-05-23 15:26:42 +02:00
extern struct btr *BTR_find_page(struct tdbb *, struct irb *, struct win *,
struct idx *, struct key *, struct key *, bool);
extern void BTR_insert(struct tdbb *, struct win *, struct iib *);
extern enum idx_e BTR_key(struct tdbb *, struct jrd_rel *, struct rec *,
struct idx *, struct key *, idx_null_state *);
extern USHORT BTR_key_length(struct jrd_rel *, struct idx *);
2001-05-23 15:26:42 +02:00
extern struct btn *BTR_last_node(struct btr *, struct exp *, struct btx **);
extern struct btr *BTR_left_handoff(struct tdbb *, struct win *, struct btr *,
SSHORT);
extern USHORT BTR_lookup(TDBB, struct jrd_rel *, USHORT, struct idx *);
extern void BTR_make_key(struct tdbb *, USHORT, struct jrd_nod **, struct idx *,
2001-05-23 15:26:42 +02:00
struct key *, USHORT);
extern bool BTR_next_index(TDBB, struct jrd_rel *, struct jrd_tra *, struct idx *,
struct win *);
2001-05-23 15:26:42 +02:00
extern struct btn *BTR_next_node(struct btn *, struct btx **);
extern struct btn *BTR_previous_node(struct btn *, struct btx **);
extern void BTR_remove(struct tdbb *, struct win *, struct iib *);
extern void BTR_reserve_slot(TDBB, struct jrd_rel *, struct jrd_tra *, struct idx *);
extern float BTR_selectivity(TDBB, struct jrd_rel *, USHORT);
2001-05-23 15:26:42 +02:00
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* _JRD_BTR_PROTO_H_ */