X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=isam%2Fmemory.h;h=77bc660224e256c2ffa46e431483bbc2502624dc;hp=2f92ee0dcdec4b9617a0a5d88e7abecf44a66c43;hb=896c0427df9d8eff5de6a1735dcd992e067df844;hpb=c9c9df90cf9d66e46b177e62a4402a9def633634 diff --git a/isam/memory.h b/isam/memory.h index 2f92ee0..77bc660 100644 --- a/isam/memory.h +++ b/isam/memory.h @@ -1,26 +1,34 @@ -/* - * Copyright (C) 1994, Index Data I/S - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss - * - * $Log: memory.h,v $ - * Revision 1.3 1994-09-28 16:58:33 quinn - * Small mod. - * - * Revision 1.2 1994/09/27 20:03:52 quinn - * Seems relatively bug-free. - * - * Revision 1.1 1994/09/26 17:12:32 quinn - * Back again - * - * Revision 1.1 1994/09/26 16:07:57 quinn - * Most of the functionality in place. - * - */ +/* $Id: memory.h,v 1.8 2002-08-02 19:26:56 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 MEMORY_H #define MEMORY_H +#ifdef __cplusplus +extern "C" { +#endif + extern int is_mbuf_size[3]; typedef unsigned int ISAM_P; @@ -73,6 +81,7 @@ typedef struct is_mtable int num_records; /* total number of records */ int pos_type; /* blocktype */ is_mblock *cur_mblock; + is_mbuf *last_mbuf; is_mblock *data; /* blocks contained in this table */ ISAM is; } is_mtable; @@ -90,11 +99,16 @@ void is_m_rewind(is_mtable *tab); void is_m_replace_record(is_mtable *tab, const void *rec); int is_m_write_record(is_mtable *tab, const void *rec); void is_m_unread_record(is_mtable *tab); -int is_m_read_record(is_mtable *tab, void *buf); +int is_m_read_record(is_mtable *tab, void *buf, int keep); int is_m_seek_record(is_mtable *tab, const void *rec); void is_m_delete_record(is_mtable *tab); int is_m_peek_record(is_mtable *tab, void *rec); int is_m_read_full(is_mtable *tab, is_mblock *mblock); int is_m_num_records(is_mtable *tab); +#ifdef __cplusplus +} +#endif + + #endif