IDZEBRA 2.2.8
isams.h
Go to the documentation of this file.
1/* This file is part of the Zebra server.
2 Copyright (C) Index Data
3
4Zebra is free software; you can redistribute it and/or modify it under
5the terms of the GNU General Public License as published by the Free
6Software Foundation; either version 2, or (at your option) any later
7version.
8
9Zebra is distributed in the hope that it will be useful, but WITHOUT ANY
10WARRANTY; without even the implied warranty of MERCHANTABILITY or
11FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program; if not, write to the Free Software
16Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17
18*/
19
20
21#ifndef ISAMS_H
22#define ISAMS_H
23
24#include <idzebra/isam-codec.h>
25#include <idzebra/bfile.h>
26#include <idzebra/isamc.h>
27
28YAZ_BEGIN_CDECL
29
30typedef struct ISAMS_s *ISAMS;
31typedef struct ISAMS_PP_s *ISAMS_PP;
32
33typedef struct ISAMS_M_s {
34 int (*compare_item)(const void *a, const void *b);
35 void (*log_item)(int logmask, const void *p, const char *txt);
36
38
39 int debug;
42
43typedef struct ISAMS_I_s {
44 int (*read_item)(void *clientData, char **dst, int *insertMode);
47
48void isams_getmethod (ISAMS_M *me);
49
50ISAMS isams_open (BFiles bfs, const char *name, int writeflag,
51 ISAMS_M *method);
52int isams_close (ISAMS is);
55void isams_pp_close (ISAMS_PP pp);
56int isams_read_item (ISAMS_PP pp, char **dst);
57int isams_pp_read (ISAMS_PP pp, void *buf);
58int isams_pp_num (ISAMS_PP pp);
59
60YAZ_END_CDECL
61
62#endif
63/*
64 * Local variables:
65 * c-basic-offset: 4
66 * c-file-style: "Stroustrup"
67 * indent-tabs-mode: nil
68 * End:
69 * vim: shiftwidth=4 tabstop=8 expandtab
70 */
71
Zebra Block File Layer.
zint ISAM_P
Definition isamc.h:28
int isams_pp_num(ISAMS_PP pp)
Definition isams.c:222
int isams_pp_read(ISAMS_PP pp, void *buf)
Definition isams.c:227
struct ISAMS_M_s ISAMS_M
struct ISAMS_I_s * ISAMS_I
int isams_read_item(ISAMS_PP pp, char **dst)
Definition isams.c:233
ISAM_P isams_merge(ISAMS is, ISAMS_I data)
Definition isams.c:115
struct ISAMS_PP_s * ISAMS_PP
Definition isams.h:31
struct ISAMS_s * ISAMS
Definition isams.h:30
void isams_getmethod(ISAMS_M *me)
Definition isams.c:61
int isams_close(ISAMS is)
Definition isams.c:99
void isams_pp_close(ISAMS_PP pp)
Definition isams.c:215
ISAMS_PP isams_pp_open(ISAMS is, ISAM_P pos)
Definition isams.c:187
ISAMS isams_open(BFiles bfs, const char *name, int writeflag, ISAMS_M *method)
Definition isams.c:76
void * clientData
Definition isams.h:45
int(* read_item)(void *clientData, char **dst, int *insertMode)
Definition isams.h:44
int debug
Definition isams.h:39
ISAM_CODEC codec
Definition isams.h:37
int(* compare_item)(const void *a, const void *b)
Definition isams.h:34
void(* log_item)(int logmask, const void *p, const char *txt)
Definition isams.h:35
int block_size
Definition isams.h:40