X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=bfile%2Fmfile.h;h=a52aa70057a87b02d5ab8f9b0c8c39d575cc9f76;hb=59f0ad65b51f783ba61b63b0c97e6003bafa84b3;hp=2c7deb6497ee95170d2415ad93964417c9135c45;hpb=0f78f3fe78e859d9f0d3f0d3e13fcd28085dd427;p=idzebra-moved-to-github.git diff --git a/bfile/mfile.h b/bfile/mfile.h index 2c7deb6..a52aa70 100644 --- a/bfile/mfile.h +++ b/bfile/mfile.h @@ -1,5 +1,5 @@ -/* $Id: mfile.h,v 1.9 2006-11-14 08:12:06 adam Exp $ - Copyright (C) 1995-2006 +/* $Id: mfile.h,v 1.13 2007-12-18 13:39:39 adam Exp $ + Copyright (C) 1995-2007 Index Data ApS This file is part of the Zebra server. @@ -26,6 +26,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include #include #include +#include #ifdef WIN32 @@ -92,24 +93,26 @@ typedef struct meta_file struct meta_file *next; } *MFile, meta_file; -typedef struct MFile_area_struct +struct MFile_area_struct { char name[FILENAME_MAX+1]; mf_dir *dirs; struct meta_file *mfiles; struct MFile_area_struct *next; /* global list of active areas */ Zebra_mutex mutex; -} MFile_area_struct; +}; /** \brief creates a metafile area \param name of area (does not show up on disk - purely for notation) \param spec area specification (e.g. "/a:1G dir /b:2000M" \param base base directory (NULL for no base) + \param only_shadow_files only consider shadow files in area \returns metafile area handle or NULL if error occurs */ -MFile_area mf_init(const char *name, const char *spec, const char *base) +MFile_area mf_init(const char *name, const char *spec, const char *base, + int only_shadow_files) ZEBRA_GCC_ATTR((warn_unused_result)); - + /** \brief destroys metafile area handle \param ma metafile area handle */