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