/* $Id$
- Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
+ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
Index Data Aps
This file is part of the Zebra server.
02111-1307, USA.
*/
-
-
#ifndef ISAMD_H
#define ISAMD_H
ISAMD_filecat filecat;
int (*compare_item)(const void *a, const void *b);
+ void (*log_item)(int logmask, const void *p, const char *txt);
#define ISAMD_DECODE 0
#define ISAMD_ENCODE 1
int max_blocks_mem;
int debug;
-} *ISAMD_M;
+} ISAMD_M;
typedef struct ISAMD_I_s { /* encapsulation of input data */
int (*read_item)(void *clientData, char **dst, int *insertMode);
void *clientData;
} *ISAMD_I;
-ISAMD_M isamd_getmethod (ISAMD_M me);
+ISAMD_M *isamd_getmethod (ISAMD_M *me);
-ISAMD isamd_open (BFiles bfs, const char *name, int writeflag, ISAMD_M method);
+ISAMD isamd_open (BFiles bfs, const char *name, int writeflag, ISAMD_M *method);
int isamd_close (ISAMD is);
/*ISAMD_P isamd_append (ISAMD is, ISAMD_P pos, ISAMD_I data);*/
int isamd_append (ISAMD is, char *dictentry, int dictlen, ISAMD_I data);