X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fisam.h;h=0e4488a2bb38e85e1f355704984391f8dd697f13;hb=79176bd8a477e1c64ac3ec03b50405ed5ed85a3f;hp=e38edc15c82734e2a86b97894b7a07f678185c48;hpb=42b0747acfaaf94e94fd6c20b4cd97e10ded0ae0;p=idzebra-moved-to-github.git diff --git a/include/isam.h b/include/isam.h index e38edc1..0e4488a 100644 --- a/include/isam.h +++ b/include/isam.h @@ -1,55 +1,44 @@ -/* - * Copyright (C) 1994, Index Data I/S - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: isam.h,v $ - * 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 - * Small mod. - * - * Revision 1.8 1994/09/28 12:56:09 quinn - * Added access functions (ISPT) - * - * Revision 1.7 1994/09/28 11:56:13 quinn - * Removed const from input to is_merge - * - * Revision 1.6 1994/09/28 11:29:28 quinn - * Added cmp parameter. - * - * Revision 1.5 1994/09/27 20:03:36 quinn - * Seems relatively bug-free. - * - * Revision 1.4 1994/09/26 17:05:54 quinn - * Trivial. - * - * Revision 1.3 1994/09/26 16:08:42 quinn - * Most of the functionality in place. - * - * Revision 1.2 1994/09/14 13:10:35 quinn - * Small changes - * - * Revision 1.1 1994/09/12 08:02:07 quinn - * Not functional yet - * - */ +/* $Id: isam.h,v 1.15 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #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 +89,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 +122,8 @@ void is_rewind(ISPT ip); ISAM_P is_merge(ISAM is, ISAM_P pos, int num, char *data); +#ifdef __cplusplus +} +#endif + #endif