X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Findex.h;h=b241e6a6fd2a7de0dfb95ea9ffe997fc4e39c4e4;hb=e5ebc859654d84aa9098142b34015648d8e333de;hp=e7c61de7b6e559455621e59d68fab97c4fab8c45;hpb=e8f4cf34c75ffdc7bbfaf3fa232f29cc1384b60c;p=idzebra-moved-to-github.git diff --git a/index/index.h b/index/index.h index e7c61de..b241e6a 100644 --- a/index/index.h +++ b/index/index.h @@ -1,26 +1,34 @@ /* - * Copyright (C) 1995-1999, Index Data + * Copyright (C) 1995-0000, Index Data * All rights reserved. * Sebastian Hammer, Adam Dickmeiss, Heikki Levanto * (log at the end) */ + +#ifndef INDEX_H +#define INDEX_H + #include #include #include #include #include +#include +#if ZMBOL #include #include -#include -#include #include -#include +#define ISAM_DEFAULT "c" +#else +#define ISAM_DEFAULT "s" +#endif +#include #include -#ifdef __cplusplus -extern "C" { -#endif +YAZ_BEGIN_CDECL + +#define SU_SCHEME 1 #define IT_MAX_WORD 256 #define IT_KEY_HAVE_SEQNO 1 @@ -69,7 +77,7 @@ struct recordGroup { RecTypes recTypes; }; -void getFnameTmp (char *fname, int no); +void getFnameTmp (Res res, char *fname, int no); struct dirs_info *dirs_open (Dict dict, const char *rep, int rw); struct dirs_info *dirs_fopen (Dict dict, const char *path); @@ -99,11 +107,12 @@ int key_qsort_compare (const void *p1, const void *p2); void key_logdump (int mask, const void *p); void inv_prstat (BFiles bfs); void inv_compact (BFiles bfs); -void key_input (BFiles bfs, int nkeys, int cache); -ISAMC_M key_isamc_m (Res res, ISAMC_M me); +void key_input (BFiles bfs, int nkeys, int cache, Res res); ISAMS_M key_isams_m (Res res, ISAMS_M me); -ISAMH_M key_isamh_m (Res res); +#if ZMBOL +ISAMC_M key_isamc_m (Res res, ISAMC_M me); ISAMD_M key_isamd_m (Res res, ISAMD_M me); +#endif int merge_sort (char **buf, int from, int to); int key_SU_code (int ch, char *out); @@ -132,7 +141,7 @@ int fileExtract (SYSNO *sysno, const char *fname, void zebraIndexLockMsg (const char *str); void zebraIndexUnlock (void); -void zebraIndexLock (BFiles bfs, int commitNow, const char *rval); +int zebraIndexLock (BFiles bfs, int commitNow, const char *rval); int zebraIndexWait (int commitPhase); #define FNAME_MAIN_LOCK "zebraidx.LCK" @@ -153,15 +162,25 @@ void zebra_load_atts (data1_handle dh, Res res); extern Res common_resource; -#ifdef __cplusplus -} -#endif - - +YAZ_END_CDECL +#endif /* * $Log: index.h,v $ - * Revision 1.66 1999-07-14 13:21:34 heikki + * Revision 1.70 2000-12-05 10:01:44 adam + * Fixed bug regarding user-defined attribute sets. + * + * Revision 1.69 2000/03/20 19:08:36 adam + * Added remote record import using Z39.50 extended services and Segment + * Requests. + * + * Revision 1.68 2000/02/24 11:00:07 adam + * Fixed bug: indexer would run forever when lock dir was non-existant. + * + * Revision 1.67 1999/11/30 13:48:03 adam + * Improved installation. Updated for inclusion of YAZ header files. + * + * Revision 1.66 1999/07/14 13:21:34 heikki * Added isam-d files. Compiles (almost) clean. Doesn't work at all * * Revision 1.65 1999/07/14 10:59:26 adam