X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fzserver.h;h=18bde7d51cfd83f8a4dbbf65c1f7f7c4e2f7871b;hb=3726bf6622da6a8b983bb4cbb7d654e84c3216d7;hp=7bebbad7647acd46a02f3ccf34e60cd7fd1603e9;hpb=2d6227440bb26674cab2091b3d79c1934995b762;p=idzebra-moved-to-github.git diff --git a/index/zserver.h b/index/zserver.h index 7bebbad..18bde7d 100644 --- a/index/zserver.h +++ b/index/zserver.h @@ -1,10 +1,26 @@ /* - * Copyright (C) 1994-1998, Index Data + * Copyright (C) 1994-1999, Index Data * All rights reserved. * Sebastian Hammer, Adam Dickmeiss * * $Log: zserver.h,v $ - * Revision 1.38 1998-09-22 10:03:44 adam + * Revision 1.43 1999-07-14 10:59:27 adam + * Changed functions isc_getmethod, isams_getmethod. + * Improved fatal error handling (such as missing EXPLAIN schema). + * + * Revision 1.42 1999/05/26 07:49:13 adam + * C++ compilation. + * + * Revision 1.41 1999/05/12 13:08:06 adam + * First version of ISAMS. + * + * Revision 1.40 1998/11/16 16:03:45 adam + * Moved loggin utilities to Yaz. Was implemented in file zlogs.c. + * + * Revision 1.39 1998/10/16 08:14:35 adam + * Updated record control system. + * + * Revision 1.38 1998/09/22 10:03:44 adam * Changed result sets to be persistent in the sense that they can * be re-searched if needed. * Fixed memory leak in rsm_or. @@ -137,16 +153,7 @@ * */ - -#ifndef USE_TIMES -#ifdef __linux__ -#define USE_TIMES 1 -#else -#define USE_TIMES 0 -#endif -#endif - -#if USE_TIMES +#if HAVE_SYS_TIMES_H #include #endif @@ -159,6 +166,10 @@ #include "zebraapi.h" #include "zinfo.h" +#ifdef __cplusplus +extern "C" { +#endif + typedef struct { int sysno; int score; @@ -181,6 +192,7 @@ struct zebra_info { SortIdx sortIdx; ISAM isam; ISAMC isamc; + ISAMS isams; Records records; int errCode; int hits; @@ -193,16 +205,16 @@ struct zebra_info { ZebraLockHandle server_lock_cmt; ZebraLockHandle server_lock_org; char *server_path_prefix; -#if USE_TIMES +#if HAVE_SYS_TIMES_H struct tms tms1; struct tms tms2; #endif ZebraMaps zebra_maps; ZebraRankClass rank_classes; + RecTypes recTypes; Passwd_db passwd_db; }; - struct rank_control { char *name; void *(*create)(ZebraHandle zh); @@ -252,9 +264,6 @@ void zebra_sort (ZebraHandle zh, ODR stream, const char *output_setname, Z_SortKeySpecList *sort_sequence, int *sort_status); -void zlog_rpn (Z_RPNQuery *rpn); -void zlog_scan (Z_AttributesPlusTerm *zapt, oid_value ast); - int zebra_server_lock_init (ZebraHandle zh); int zebra_server_lock_destroy (ZebraHandle zh); int zebra_server_lock (ZebraHandle zh, int lockCommit); @@ -280,3 +289,6 @@ int zebra_record_fetch (ZebraHandle zh, int sysno, int score, ODR stream, oid_value *output_format, char **rec_bufp, int *rec_lenp, char **basenamep); +#ifdef __cplusplus +} +#endif