X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=bfile%2Fmfile.h;h=7b5be309ba45e9b4ddfac9d40e83894897ed9019;hb=4478d785b7769691261005c98063b98a5a5971b3;hp=2a9205b2b5881f5d86e7bd56b60b14969fc1125c;hpb=6c9fcd3b5d3108702fa1ffc92dab4ab6060f9a19;p=idzebra-moved-to-github.git diff --git a/bfile/mfile.h b/bfile/mfile.h index 2a9205b..7b5be30 100644 --- a/bfile/mfile.h +++ b/bfile/mfile.h @@ -1,5 +1,5 @@ -/* $Id: mfile.h,v 1.2 2005-01-15 19:38:18 adam Exp $ - Copyright (C) 1995-2005 +/* $Id: mfile.h,v 1.6 2006-08-14 10:40:05 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 + */ @@ -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 + */ +