projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Deb: compat 5
[idzebra-moved-to-github.git]
/
bfile
/
mfile.h
diff --git
a/bfile/mfile.h
b/bfile/mfile.h
index
86068bb
..
85c5de5
100644
(file)
--- a/
bfile/mfile.h
+++ b/
bfile/mfile.h
@@
-1,8
+1,5
@@
-/* $Id: mfile.h,v 1.12 2007-01-15 20:08:23 adam Exp $
- Copyright (C) 1995-2007
- Index Data ApS
-
-This file is part of the Zebra server.
+/* This file is part of the Zebra server.
+ 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
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,14
+90,14
@@
typedef struct meta_file
struct meta_file *next;
} *MFile, 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;
{
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)
/** \brief creates a metafile area
\param name of area (does not show up on disk - purely for notation)
@@
-112,7
+109,7
@@
typedef struct MFile_area_struct
MFile_area mf_init(const char *name, const char *spec, const char *base,
int only_shadow_files)
ZEBRA_GCC_ATTR((warn_unused_result));
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
*/
/** \brief destroys metafile area handle
\param ma metafile area handle
*/
@@
-127,7
+124,7
@@
void mf_destroy(MFile_area ma);
*/
MFile mf_open(MFile_area ma, const char *name, int block_size, int wflag)
ZEBRA_GCC_ATTR((warn_unused_result));
*/
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
/** \brief closes metafile
\param mf metafile handle
\retval 0 OK
@@
-146,7
+143,7
@@
int mf_close(MFile mf);
*/
int mf_read(MFile mf, zint no, int offset, int nbytes, void *buf)
ZEBRA_GCC_ATTR((warn_unused_result));
*/
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
/** \brief writes block to metafile
\param mf metafile handle
\param no block position
@@
-157,8
+154,8
@@
int mf_read(MFile mf, zint no, int offset, int nbytes, void *buf)
\retval -1 error (block not written)
*/
int mf_write(MFile mf, zint no, int offset, int nbytes, const void *buf)
\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
/** \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
@@
-178,16
+175,17
@@
void mf_reset(MFile_area ma, int unlink_flag);
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.
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);
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
YAZ_END_CDECL
#endif
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab