X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=bfile%2Fmfile.h;h=7f653cbae2de4d1051ef2e32492bc911937bf1d1;hb=e075935572b3ef0a246aaefde50efadbfa12e5c4;hp=3cf4cdae72d267c2791d917632e2b29a9daa6689;hpb=05b9b8ed020c5bfa48a913d6a2e2b50ddf1bab8e;p=idzebra-moved-to-github.git diff --git a/bfile/mfile.h b/bfile/mfile.h index 3cf4cda..7f653cb 100644 --- a/bfile/mfile.h +++ b/bfile/mfile.h @@ -1,6 +1,6 @@ -/* $Id: mfile.h,v 1.1 2004-12-08 12:23:08 adam Exp $ - Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004 - Index Data Aps +/* $Id: mfile.h,v 1.5 2006-05-10 08:13:17 adam Exp $ + Copyright (C) 1995-2005 + Index Data ApS This file is part of the Zebra server. @@ -145,11 +145,31 @@ int mf_unlink(MFile mf); */ void mf_reset(MFile_area ma); -/* - * Unlink the file by name, rather than MFile-handle. - */ -int mf_unlink_name(MFile_area, const char *name); - +/* \brief gets statistics about directory in metafile area + \param ma the area + \param no directory number (0=first, 1=second,...) + \param directory holds directory name (if found) + \param used_bytes used file bytes in directory (if found) + \param max_bytes max usage of bytes (if found) + \retval 1 no is within range and directory, used, max are set. + \retval 0 no is out of range and directory, used, max are unset + + We are using double, because off_t may have a different size + on same platform depending on whether 64-bit is enabled or not. + Note that if an area has unlimited size, that is represented + as max_bytes = -1. +*/ +int mf_area_directory_stat(MFile_area ma, int no, const char **directory, + double *bytes_used, double *bytes_max); + YAZ_END_CDECL #endif +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +