X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=bfile%2Fmfile.h;h=9d7fdfbb6b9cbf46ff740e108ea608e0f46dae60;hb=a741f3ed46c75118dd042c30b375c9cea923b33e;hp=cfa408f6fde37b57a91fcaa8a863c433a5442320;hpb=35f67dc85e5507c1edc1fecbc2835fab0255ada4;p=idzebra-moved-to-github.git diff --git a/bfile/mfile.h b/bfile/mfile.h index cfa408f..9d7fdfb 100644 --- a/bfile/mfile.h +++ b/bfile/mfile.h @@ -1,8 +1,5 @@ -/* $Id: mfile.h,v 1.10 2006-11-14 12:41:19 adam Exp $ - Copyright (C) 1995-2006 - Index Data ApS - -This file is part of the Zebra server. +/* This file is part of the Zebra server. + Copyright (C) 1995-2008 Index Data Zebra is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -93,24 +90,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 */