mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-26 08:03:03 +01:00
72 lines
2.8 KiB
C
72 lines
2.8 KiB
C
/*
|
|
* 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 rel *, struct idx **, struct idx **,
|
|
struct str **, SLONG *);
|
|
extern void BTR_create(TDBB, struct rel *, struct idx *, USHORT, struct scb *,
|
|
float *);
|
|
extern void BTR_delete_index(TDBB, struct win *, USHORT);
|
|
extern BOOLEAN BTR_description(REL, register struct irt *,
|
|
register struct idx *, SSHORT);
|
|
extern void BTR_evaluate(struct tdbb *, struct irb *, struct sbm **);
|
|
extern struct btn *BTR_find_leaf(struct btr *, struct key *, UCHAR *, UCHAR *,
|
|
int, BOOLEAN);
|
|
extern struct btr *BTR_find_page(struct tdbb *, struct irb *, struct win *,
|
|
struct idx *, struct key *, struct key *,
|
|
BOOLEAN);
|
|
extern SLONG BTR_get_quad(SCHAR *);
|
|
extern void BTR_insert(struct tdbb *, struct win *, register struct iib *);
|
|
extern enum idx_e BTR_key(struct tdbb *, struct rel *, struct rec *,
|
|
register struct idx *, struct key *);
|
|
extern USHORT BTR_key_length(struct rel *, struct idx *);
|
|
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 rel *, USHORT, register struct idx *);
|
|
extern void BTR_make_key(struct tdbb *, USHORT, struct nod **, struct idx *,
|
|
struct key *, USHORT);
|
|
extern BOOLEAN BTR_next_index(TDBB, struct rel *, struct tra *, struct idx *,
|
|
struct win *);
|
|
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 *, register struct iib *);
|
|
extern void BTR_reserve_slot(TDBB, struct rel *, struct tra *, struct idx *);
|
|
extern float BTR_selectivity(TDBB, struct rel *, USHORT);
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern "C" */
|
|
#endif
|
|
|
|
#endif /* _JRD_BTR_PROTO_H_ */
|