Started work on commit facility.
[idzebra-moved-to-github.git] / include / bfile.h
1 /*
2  * Copyright (C) 1994-1995, Index Data I/S 
3  * All rights reserved.
4  * Sebastian Hammer, Adam Dickmeiss
5  *
6  * $Log: bfile.h,v $
7  * Revision 1.8  1995-11-30 08:33:29  adam
8  * Started work on commit facility.
9  *
10  * Revision 1.7  1995/09/04  12:33:35  adam
11  * Various cleanup. YAZ util used instead.
12  *
13  * Revision 1.6  1994/09/14  13:10:35  quinn
14  * Small changes
15  *
16  * Revision 1.5  1994/08/24  08:45:52  quinn
17  * Using mfile.
18  *
19  * Revision 1.4  1994/08/17  15:38:28  adam
20  * Include of util.h.
21  *
22  * Revision 1.3  1994/08/17  14:09:47  quinn
23  * Small changes
24  *
25  */
26
27 #ifndef BFILE_H
28 #define BFILE_H
29
30 #include <alexutil.h>
31 #include <mfile.h>
32
33 #define bf_blocksize(bf) mf_blocksize(bf->mf)
34
35 typedef struct BFile_struct
36 {
37     MFile mf;
38     struct CFile_struct *cf;
39 } *BFile, BFile_struct;
40
41 int bf_close (BFile);
42 BFile bf_open (const char *name, int block_size, int wflag);
43 int bf_read (BFile bf, int no, int offset, int num, void *buf);
44 int bf_write (BFile bf, int no, int offset, int num, const void *buf);
45 void bf_cache (const char *name);
46 void bf_commit (const char *name);
47
48 #endif