9fb5f71043dc2abf854ab2eed1d1fd708d521928
[idzebra-moved-to-github.git] / include / isamb.h
1 /*
2  * Copyright (C) 2000-2002, Index Data
3  * All rights reserved.
4  * $Id: isamb.h,v 1.3 2002-04-29 18:03:45 adam Exp $
5  */
6
7 #ifndef ISAMB_H
8 #define ISAMB_H
9
10 #include <bfile.h>
11 #include <isamc.h>
12
13 typedef struct ISAMB_s *ISAMB;
14 typedef struct ISAMB_PP_s *ISAMB_PP;
15 typedef ISAMC_P ISAMB_P;
16
17 ISAMB isamb_open (BFiles bfs, const char *name, int writeflag, ISAMC_M method);
18 void isamb_close (ISAMB isamb);
19
20 ISAMB_P isamb_merge (ISAMB b, ISAMB_P pos, ISAMC_I data);
21
22 ISAMB_PP isamb_pp_open (ISAMB isamb, ISAMB_P pos);
23
24 int isamb_pp_read (ISAMB_PP pp, void *buf);
25
26 void isamb_pp_close (ISAMB_PP pp);
27
28 int isamb_pp_num (ISAMB_PP pp);
29
30 ISAMB_PP isamb_pp_open_x (ISAMB isamb, ISAMB_P pos, int *level);
31 void isamb_pp_close_x (ISAMB_PP pp, int *size, int *blocks);
32
33 int isamb_block_info (ISAMB isamb, int cat);
34
35 #endif