First work.
[idzebra-moved-to-github.git] / isamc / isamc-p.h
1 /*
2  * Copyright (c) 1995-1996, Index Data.
3  * See the file LICENSE for details.
4  * Sebastian Hammer, Adam Dickmeiss
5  *
6  * $Log: isamc-p.h,v $
7  * Revision 1.1  1996-10-29 13:40:47  adam
8  * First work.
9  *
10  */
11
12 #include <bfile.h>
13 #include <isamc.h>
14
15 typedef struct {
16     int lastblock;
17     int freelist;
18 } ISAMC_head;
19
20 typedef struct ISAMC_file_s {
21     ISAMC_head head;
22     BFile bf;
23     int head_is_dirty;
24 } *ISAMC_file;
25
26 struct ISAMC_s {
27     int no_files;
28     int max_cat;
29     char *r_buf;
30     ISAMC_M method;
31     ISAMC_file files;
32 }; 
33
34 struct ISAMC_PP_s {
35     char *buf;
36     int offset;
37     int size;
38     int cat;
39     int pos;
40     int next;
41     ISAMC is;
42     void *decodeClientData;
43 };
44
45 #define ISAMC_BLOCK_OFFSET (sizeof(int)+sizeof(int))