X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=bfile%2Fmfile.h;h=de79cd3e727712c1541a0f7aead6c894f855b09b;hb=a9b4e41c61e30e376528b83aa87955fe9594423a;hp=dee394f1879700fe193d28c4efb5101bb3d6dedb;hpb=30bb91a2915de98455a8f7a5af5c087239f22203;p=idzebra-moved-to-github.git diff --git a/bfile/mfile.h b/bfile/mfile.h index dee394f..de79cd3 100644 --- a/bfile/mfile.h +++ b/bfile/mfile.h @@ -1,5 +1,5 @@ -/* $Id: mfile.h,v 1.4 2006-05-05 09:14:02 adam Exp $ - Copyright (C) 1995-2005 +/* $Id: mfile.h,v 1.8 2006-11-08 22:06:50 adam Exp $ + Copyright (C) 1995-2006 Index Data ApS This file is part of the Zebra server. @@ -15,9 +15,9 @@ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with Zebra; see the file LICENSE.zebra. If not, write to the -Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ @@ -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 @@ -165,3 +152,11 @@ int mf_area_directory_stat(MFile_area ma, int no, const char **directory, YAZ_END_CDECL #endif +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +