X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fisam.h;h=9ecc3190cc2df72ef23ebb48d398504f89b0e7c9;hb=bceca936710690858ea162e7bc22de819f0e280f;hp=e38edc15c82734e2a86b97894b7a07f678185c48;hpb=42b0747acfaaf94e94fd6c20b4cd97e10ded0ae0;p=idzebra-moved-to-github.git diff --git a/include/isam.h b/include/isam.h index e38edc1..9ecc319 100644 --- a/include/isam.h +++ b/include/isam.h @@ -1,10 +1,24 @@ /* - * Copyright (C) 1994, Index Data I/S + * Copyright (C) 1994-1999, Index Data * All rights reserved. * Sebastian Hammer, Adam Dickmeiss * * $Log: isam.h,v $ - * Revision 1.10 1995-09-06 16:10:57 adam + * Revision 1.14 1999-02-02 14:50:34 adam + * Updated WIN32 code specific sections. Changed header. + * + * Revision 1.13 1997/09/17 12:19:09 adam + * Zebra version corresponds to YAZ version 1.4. + * Changed Zebra server so that it doesn't depend on global common_resource. + * + * Revision 1.12 1997/09/05 15:30:00 adam + * Changed prototype for chr_map_input - added const. + * Added support for C++, headers uses extern "C" for public definitions. + * + * Revision 1.11 1996/10/29 13:43:44 adam + * Removed definition of SYSNO. + * + * Revision 1.10 1995/09/06 16:10:57 adam * More work on boolean sets. * * Revision 1.9 1994/09/28 16:58:26 quinn @@ -39,17 +53,20 @@ #ifndef ISAM_H #define ISAM_H +#include #include #include "../isam/memory.h" #include "../isam/physical.h" +#ifdef __cplusplus +extern "C" { +#endif + #define IS_MAX_BLOCKTYPES 4 #define IS_MAX_RECORD 512 #define IS_DEF_REPACK_PERCENT "30" /* how much relative change before repack */ -typedef unsigned int SYSNO; /* should be somewhere else */ - /* * Description of a blocktype (part of an isam file) */ @@ -100,8 +117,9 @@ typedef struct ispt_struct /* * Open isam file. */ -ISAM is_open(const char *name, int (*cmp)(const void *p1, const void *p2), - int writeflag, int keysize); +ISAM is_open(BFiles bfs, const char *name, + int (*cmp)(const void *p1, const void *p2), + int writeflag, int keysize, Res res); /* * Close isam file. @@ -132,4 +150,8 @@ void is_rewind(ISPT ip); ISAM_P is_merge(ISAM is, ISAM_P pos, int num, char *data); +#ifdef __cplusplus +} +#endif + #endif