2001-05-23 15:26:42 +02:00
|
|
|
/*
|
|
|
|
* PROGRAM: JRD Access Method
|
|
|
|
* MODULE: met_proto.h
|
|
|
|
* DESCRIPTION: Prototype header file for met.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_MET_PROTO_H_
|
|
|
|
#define _JRD_MET_PROTO_H_
|
|
|
|
|
|
|
|
#include "../jrd/exe.h"
|
|
|
|
#include "../jrd/jrn.h"
|
|
|
|
#include "../jrd/blob_filter.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
void MET_activate_shadow(TDBB);
|
|
|
|
ULONG MET_align(struct dsc *, USHORT);
|
2002-11-21 00:18:16 +01:00
|
|
|
void MET_change_fields(TDBB, struct jrd_tra *, struct dsc *);
|
|
|
|
struct fmt *MET_current(TDBB, struct jrd_rel *);
|
2001-05-23 15:26:42 +02:00
|
|
|
void MET_delete_dependencies(TDBB, TEXT *, USHORT);
|
|
|
|
void MET_delete_shadow(TDBB, USHORT);
|
|
|
|
void MET_error(TEXT *, ...);
|
|
|
|
SCHAR *MET_exact_name(TEXT *);
|
2002-11-21 00:18:16 +01:00
|
|
|
struct fmt *MET_format(TDBB, register struct jrd_rel *, USHORT);
|
2001-05-23 15:26:42 +02:00
|
|
|
BOOLEAN MET_get_char_subtype(TDBB, SSHORT *, UCHAR *, USHORT);
|
2002-11-21 00:18:16 +01:00
|
|
|
struct jrd_nod *MET_get_dependencies(TDBB, struct jrd_rel*, TEXT*,
|
|
|
|
class Csb*, SLONG[2], struct jrd_req**,
|
2001-12-24 03:51:06 +01:00
|
|
|
class Csb **, CONST TEXT*, USHORT);
|
2002-11-30 18:45:02 +01:00
|
|
|
struct jrd_fld *MET_get_field(struct jrd_rel *, USHORT);
|
2001-05-23 15:26:42 +02:00
|
|
|
void MET_get_shadow_files(TDBB, USHORT);
|
|
|
|
int MET_get_walinfo(TDBB, struct logfiles **, ULONG *,
|
|
|
|
struct logfiles **);
|
2002-11-21 00:18:16 +01:00
|
|
|
void MET_load_trigger(TDBB, struct jrd_rel *, TEXT *, TRIG_VEC *);
|
2002-10-29 17:27:47 +01:00
|
|
|
void DLL_EXPORT MET_lookup_cnstrt_for_index(TDBB, TEXT* constraint, const TEXT* index_name);
|
2001-05-23 15:26:42 +02:00
|
|
|
void MET_lookup_cnstrt_for_trigger(TDBB, TEXT *, TEXT *, TEXT *);
|
|
|
|
void MET_lookup_exception(TDBB, SLONG, /* INOUT */ TEXT*, /* INOUT */ TEXT*);
|
|
|
|
SLONG MET_lookup_exception_number(TDBB, TEXT*);
|
2002-11-21 00:18:16 +01:00
|
|
|
int MET_lookup_field(TDBB, struct jrd_rel*, CONST TEXT*, CONST TEXT*);
|
2001-05-23 15:26:42 +02:00
|
|
|
BLF MET_lookup_filter(TDBB, SSHORT, SSHORT);
|
|
|
|
SLONG MET_lookup_generator(TDBB, TEXT *);
|
2002-07-01 18:59:09 +02:00
|
|
|
void MET_lookup_generator_id(TDBB, SLONG, TEXT *);
|
2001-05-23 15:26:42 +02:00
|
|
|
void DLL_EXPORT MET_lookup_index(TDBB, TEXT *, TEXT *, USHORT);
|
|
|
|
SLONG MET_lookup_index_name(TDBB, TEXT *, SLONG *, SSHORT *);
|
2002-11-21 00:18:16 +01:00
|
|
|
int MET_lookup_partner(TDBB, struct jrd_rel *, struct idx *, UCHAR *);
|
|
|
|
struct jrd_prc *MET_lookup_procedure(TDBB, SCHAR *, BOOLEAN);
|
|
|
|
struct jrd_prc *MET_lookup_procedure_id(TDBB, SSHORT, BOOLEAN, BOOLEAN, USHORT);
|
|
|
|
struct jrd_rel *MET_lookup_relation(TDBB, const char*);
|
|
|
|
struct jrd_rel *MET_lookup_relation_id(TDBB, SLONG, BOOLEAN);
|
|
|
|
struct jrd_nod *MET_parse_blob(TDBB, struct jrd_rel *, SLONG[2], class Csb **,
|
|
|
|
struct jrd_req **, BOOLEAN, BOOLEAN);
|
|
|
|
void MET_parse_sys_trigger(TDBB, struct jrd_rel *);
|
|
|
|
int MET_post_existence(TDBB, struct jrd_rel *);
|
|
|
|
void MET_prepare(TDBB, struct jrd_tra *, USHORT, UCHAR *);
|
|
|
|
struct jrd_prc *MET_procedure(TDBB, int, BOOLEAN, USHORT);
|
|
|
|
struct jrd_rel *MET_relation(TDBB, USHORT);
|
2002-07-04 11:34:20 +02:00
|
|
|
extern BOOLEAN MET_relation_owns_trigger (TDBB, const TEXT *, const TEXT *);
|
|
|
|
extern BOOLEAN MET_relation_default_class (TDBB, const TEXT *, const TEXT *);
|
2002-11-21 00:18:16 +01:00
|
|
|
void MET_release_existence(struct jrd_rel *);
|
2002-09-19 18:02:58 +02:00
|
|
|
void MET_release_triggers(TDBB, TRIG_VEC *);
|
2002-11-17 01:13:59 +01:00
|
|
|
BOOLEAN MET_clear_cache(TDBB, JRD_PRC);
|
|
|
|
void MET_remove_procedure(TDBB, int, JRD_PRC);
|
2002-11-21 00:18:16 +01:00
|
|
|
void MET_revoke(TDBB, struct jrd_tra *, TEXT *, TEXT *, TEXT *);
|
2001-05-23 15:26:42 +02:00
|
|
|
TEXT*MET_save_name(TDBB, CONST TEXT*);
|
2002-11-21 00:18:16 +01:00
|
|
|
void MET_scan_relation(TDBB, struct jrd_rel *);
|
2002-10-29 17:27:47 +01:00
|
|
|
const TEXT* MET_trigger_msg(TDBB, const TEXT*, USHORT);
|
2001-05-23 15:26:42 +02:00
|
|
|
void MET_update_shadow(TDBB, struct sdw *, USHORT);
|
2002-11-21 00:18:16 +01:00
|
|
|
void MET_update_transaction(TDBB, struct jrd_tra *, USHORT);
|
2002-09-30 16:21:34 +02:00
|
|
|
void MET_update_partners(TDBB);
|
2001-05-23 15:26:42 +02:00
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern "C" */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _JRD_MET_PROTO_H_ */
|