8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 23:23:04 +01:00
firebird-mirror/src/jrd/ext.h
robocop f58c769c37 Cleanup. In geeky words:
PandoraBox* pbox = reinterpret_cast<PandoraBox*>(&can_of_worms);
pbox->open();
pbox->flush();
Nickolay may want to undo my ods.h changes if gcc insists
in its crusade against non-PODs and poodles.
2004-03-18 05:56:06 +00:00

67 lines
2.0 KiB
C++

/*
* PROGRAM: JRD Access Method
* MODULE: ext.h
* DESCRIPTION: External file access definitions
*
* 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_EXT_H
#define JRD_EXT_H
/* External file access block */
class ExternalFile : public pool_alloc_rpt<SCHAR, type_ext>
{
public:
fmt* ext_format; /* External format */
UCHAR* ext_stuff; /* Random stuff */
USHORT ext_flags; /* Misc and cruddy flags */
#ifdef VMS
int ext_ifi; /* Internal file identifier */
int ext_isi; /* Internal stream (default) */
#else
int* ext_ifi; /* Internal file identifier */
int* ext_isi; /* Internal stream (default) */
#endif
USHORT ext_record_length; /* Record length */
USHORT ext_file_type; /* File type */
USHORT ext_index_count; /* Number of indices */
UCHAR* ext_indices; /* Index descriptions */
UCHAR ext_dbkey[8]; /* DBKEY */
UCHAR ext_filename[1];
};
#define EXT_opened 1 /* File has been opened */
#define EXT_eof 2 /* Positioned at EOF */
#define EXT_readonly 4 /* File could only be opened for read */
typedef struct irsb_ext {
USHORT irsb_flags; /* flags (a whole word!) */
UCHAR irsb_ext_dbkey[8]; /* DBKEY */
} *IRSB_EXT;
/* Overload record parameter block with external file stuff */
#define rpb_ext_pos rpb_page
#define rpb_ext_isi rpb_f_page
#define rpb_ext_dbkey rpb_b_page
#endif // JRD_EXT_H