/* This file is part of the Zebra server.
- Copyright (C) 1994-2011 Index Data
+ Copyright (C) 2004-2013 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
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
*/
*/
MFile mf_open(MFile_area ma, const char *name, int block_size, int wflag)
ZEBRA_GCC_ATTR((warn_unused_result));
-
+
/** \brief closes metafile
\param mf metafile handle
\retval 0 OK
*/
int mf_read(MFile mf, zint no, int offset, int nbytes, void *buf)
ZEBRA_GCC_ATTR((warn_unused_result));
-
+
/** \brief writes block to metafile
\param mf metafile handle
\param no block position
\retval -1 error (block not written)
*/
int mf_write(MFile mf, zint no, int offset, int nbytes, const void *buf)
- ZEBRA_GCC_ATTR((warn_unused_result));
-
+ ZEBRA_GCC_ATTR((warn_unused_result));
+
/** \brief reset all files in a metafile area (optionally delete them as well)
\param ma metafile area
\param unlink_flag if unlink_flag=1 all files are removed from FS
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