2 * Copyright (c) 1995-1999, Index Data.
3 * See the file LICENSE for details.
4 * Sebastian Hammer, Adam Dickmeiss
6 * $Id: isams.h,v 1.2 1999-07-14 10:59:26 adam Exp $
17 typedef struct ISAMS_s *ISAMS;
19 typedef struct ISAMS_PP_s *ISAMS_PP;
21 typedef struct ISAMS_M_s {
22 int (*compare_item)(const void *a, const void *b);
24 #define ISAMC_DECODE 0
25 #define ISAMC_ENCODE 1
26 void *(*code_start)(int mode);
27 void (*code_stop)(int mode, void *p);
28 void (*code_item)(int mode, void *p, char **dst, char **src);
34 typedef struct ISAMS_I_s {
35 int (*read_item)(void *clientData, char **dst, int *insertMode);
39 void isams_getmethod (ISAMS_M me);
41 ISAMS isams_open (BFiles bfs, const char *name, int writeflag,
43 int isams_close (ISAMS is);
44 ISAMS_P isams_merge (ISAMS is, ISAMS_I data);
45 ISAMS_PP isams_pp_open (ISAMS is, ISAMS_P pos);
46 void isams_pp_close (ISAMS_PP pp);
47 int isams_read_item (ISAMS_PP pp, char **dst);
48 int isams_pp_read (ISAMS_PP pp, void *buf);
49 int isams_pp_num (ISAMS_PP pp);