X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=bfile%2Fmfile.h;h=de79cd3e727712c1541a0f7aead6c894f855b09b;hb=a9b4e41c61e30e376528b83aa87955fe9594423a;hp=7b5be309ba45e9b4ddfac9d40e83894897ed9019;hpb=4478d785b7769691261005c98063b98a5a5971b3;p=idzebra-moved-to-github.git diff --git a/bfile/mfile.h b/bfile/mfile.h index 7b5be30..de79cd3 100644 --- a/bfile/mfile.h +++ b/bfile/mfile.h @@ -1,4 +1,4 @@ -/* $Id: mfile.h,v 1.6 2006-08-14 10:40:05 adam Exp $ +/* $Id: mfile.h,v 1.8 2006-11-08 22:06:50 adam Exp $ Copyright (C) 1995-2006 Index Data ApS @@ -85,7 +85,6 @@ typedef struct meta_file int no_files; int cur_file; int open; /* is this file open? */ - int unlink_flag; int blocksize; mfile_off_t min_bytes_creat; /* minimum bytes required to enter directory */ MFile_area ma; @@ -124,26 +123,14 @@ MFile mf_open(MFile_area ma, const char *name, int block_size, int wflag); */ int mf_close(MFile mf); -/* - * Read one block from a metafile. Interface mirrors bfile. - */ int mf_read(MFile mf, zint no, int offset, int nbytes, void *buf); -/* - * Same. - */ int mf_write(MFile mf, zint no, int offset, int nbytes, const void *buf); /* - * Destroy a metafile, unlinking component files. File must be open. - */ -int mf_unlink(MFile mf); - - -/* * Destroy all metafiles. No files may be opened. */ -void mf_reset(MFile_area ma); +void mf_reset(MFile_area ma, int unlink_flag); /* \brief gets statistics about directory in metafile area \param ma the area