X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=include%2Fidzebra%2Fisamc.h;h=bafee8853f0bc95ba0f9972f1e2e636527562948;hb=ecb3935e78cd9bcfdebafdee0834cfb1060d7b5e;hp=ccb5644e0f7cf11e1d0787a1d2c79330dc46615c;hpb=ecf94fc25324414287d3bbfbeba4440e558edd17;p=idzebra-moved-to-github.git diff --git a/include/idzebra/isamc.h b/include/idzebra/isamc.h index ccb5644..bafee88 100644 --- a/include/idzebra/isamc.h +++ b/include/idzebra/isamc.h @@ -1,4 +1,4 @@ -/* $Id: isamc.h,v 1.3 2005-04-13 13:03:47 adam Exp $ +/* $Id: isamc.h,v 1.5 2006-05-10 08:13:20 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -57,20 +57,37 @@ typedef struct ISAMC_I_s { void *clientData; } ISAMC_I; +YAZ_EXPORT void isamc_getmethod (ISAMC_M *m); +YAZ_EXPORT ISAMC isamc_open (BFiles bfs, const char *name, int writeflag, ISAMC_M *method); +YAZ_EXPORT int isamc_close (ISAMC is); + +YAZ_EXPORT void isamc_merge (ISAMC is, ISAM_P *pos, ISAMC_I *data); +YAZ_EXPORT ISAMC_PP isamc_pp_open (ISAMC is, ISAM_P pos); + +YAZ_EXPORT void isamc_pp_close (ISAMC_PP pp); + +YAZ_EXPORT int isamc_read_item (ISAMC_PP pp, char **dst); + +YAZ_EXPORT int isamc_pp_read (ISAMC_PP pp, void *buf); + +YAZ_EXPORT zint isamc_pp_num (ISAMC_PP pp); +YAZ_EXPORT zint isamc_block_used (ISAMC is, int type); + +YAZ_EXPORT int isamc_block_size (ISAMC is, int type); #define isamc_type(x) ((x) & 7) @@ -79,3 +96,11 @@ int isamc_block_size (ISAMC is, int type); YAZ_END_CDECL #endif +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +